-
0 votesanswersviews
用tfs readonly文件构建gulp(angular-seed)
我正在使用mgechev的优秀角度种子,但我的公司使用TFS . 当我构建时,由于/ dist文件夹中的只读文件,我得到EPERM错误 . 我已经安装了--save-dev gulp-chmod并尝试将其添加到管道中以删除只读标志(注意:在Windows中工作)但是当我运行任务时它说“找不到模块'gulp-chmod'” 我需要先在其他地方注册或映射gulp-chmod吗? -
13 votesanswersviews
'http-server'未被识别为内部或外部命令
安装angular-seed项目后,我执行了以下步骤: 克隆存储库: git clone https://github.com/angular/angular-seed.git cd angular-seed 然后我运行了npm install 在安装结束时我得到: angular-seed@0.0.0 prestart C:\ Users \ user \ Documents \ GitH... -
0 votesanswersviews
将SheetJS集成到Angular 4 SystemJS(angular-seed)时出错
我正在使用Angular 4和SystemJS的这个种子项目(angular-seed) 并希望使用SheetJS导出Excel文件 . 我按照说明,可以导入xlsx罚款,但是当导出文件时它不断返回错误: XLSX.utils.aoa_to_sheet is not a function 我已经添加到project.config.ts中 ... { name: 'xlsx', ... -
5 votesanswersviews
清除AngularJs中的服务数据
我正在尝试将数据存储在我的服务中,类似于以下答案: Processing $http response in service app.factory('myService', function($http) { var promise; var myService = { async: function() { if ( !promise ) { // ... -
1 votesanswersviews
karma TypeError“无法读取属性'subscribe'未定义”
在测试具有共享服务的简单组件时,会出现以下错误消息,并且我无法使其工作,我已经尝试了一切! TypeError:无法读取undefined的属性'subscribe' lr.component.ts export class LrComponent implements OnDestroy { currentRouter: string; private subscription: S... -
2 votesanswersviews
在IE10中升级到Angular2 RC5后没有提供PlatformRef错误
我刚升级到Angular2 RC5 . 该应用程序在所有浏览器异常IE10中加载正常 . 我得到一个例外“没有PlatformRef的提供者!”当我引导应用程序时 . 在RC4中一切都运行良好 . 我在网上看到了一些关于这个例外的帖子,但它们都与Meteor有关 . 我不使用流星 . 我的项目源自AngularSeed(我手动更新到RC5的先前版本) . 有关如何解决此问题的任何想法?谢谢! 在I...