列表 第页
我有一个模块的(的app.config),我想注入我的整个应用程序。I have a module (app.config) that I would like to inject my entire app.的模块需要注入应用 例如,我的应用程序是这样的:For example, my app looks li...阅读全文
我的团队正在从步兵移动吞掉。我有一个咕噜测试任务工作正常,但是当我尝试运行测试(使用一饮而尽 - 卡玛)我得到一个错误,指出的ReferenceError:找不到变量:模块My team is working on moving from Grunt to Gulp. I have a Grunt test task...阅读全文
纵观的 AngularJS的文档的 - 我看定期(我知道)模式宣告控制器:(支持缩小)的var phonecatApp = angular.module('phonecatApp', []);phonecatApp.controller('PhoneListCtrl', ['$scope', '$http',fun...阅读全文
ngMock做一些魔法来自动包括本身如果您在您的index.html角mocks.js。ngMock does some magic to automatically include itself if you include angular-mocks.js in your index.html.什么是强制的角...阅读全文
我有一个模块中定义的控制器:I have a controller defined inside a module:angular.module('myModule').controller('MyCtrl', function ($scope) {$scope.property = 'myproperty';...阅读全文
背景:让我们假设为参数的缘故,你有10万人次(谐音)。同样假设你有随行视图范围的控制器,并有可能视图服务范围和过滤器为好。试着想象承载10万不同的小应用的聚集应用程序。 Background: Let's suppose for the sake of argument that you have 100,0...阅读全文
我有一个simple Android的活动,提供一个单一的依赖。我的依赖注入到活动的的onCreate 是这样的:I have a simple Android activity with a single dependency. I inject the dependency into the activity's...阅读全文
家居生活的称号。在生产角度的资源时:myModule.factory('MyResource', ['$resource', function ($resource) {return $resource('api/MyResource/:id');}]);和使用中的控制器:MyResource.save({att...阅读全文
我有点新的AngularJS和HotTowel工具链。凉亭安装 AG-网宿适当的(的CSS&安培; .js文件)中的index.html文件的链接。为'angularGrid'的依赖性已经尝试对不同的模块(例如程序,芯等)没有成功。 code摘录如下包含在运行时,这会导致错误的字符串: [$喷油器:modulerr...阅读全文
我已经加入了AngularJS,烤面包机库我的index.html:I have added the AngularJS-Toaster library to my index.html:阅读全文
尝试使用善缘-NG-html2js- preprocessor。噶已经找到了我所有的其他的东西(JavaScript)的罚款,但是当它涉及到这个网站preprocessor它似乎无法找到,并从它生成一个模块。看看下面我的选择对象。正如你所看到的,我添加了一个模式,将文件属性,我使用该模块的通用名称'富'。在测试中,业力...阅读全文
我进口角1.4 WebPACK中的我的切入点模块中建立一个CommonJS的模块(即 VAR角=要求(角); ),但不知它成为在浏览器中的全局命名空间提供(即作为 window.angular )。I'm importing Angular 1.4 in my entry point module of Webpac...阅读全文
我试图用噶/茉莉花一个非常简单的测试,单元测试我的AngularJS应用程序。这似乎是工作。I'm trying a very simple test with Karma/Jasmine, to unit test my AngularJS app. This seems to work beforeEach(m...阅读全文
我有一个主模块主其中包含一个服务 mainService 。然后我注入了另一个模块 moduleA 我的主要模块中。笔者随机名为 mainService 在 moduleA 无需进主模块很惊讶地看到它工作正常。I have a main module main which contains a service mai...阅读全文
在一个页面上,我有几个角模块。每个模块我定义包含模块的版本的恒定 VAR模块1 = angular.module('模块1')常数('版本','1.2.3');VAR模块2 = angular.module('模块2')常数('版本','2.0.0')。... 我虽然不断被定义的在的模块。但是,当我使用常量里面的模块...阅读全文
我想建立一个使用通用存储库:打字稿 ES6 角的1.x 但我想不出我应该怎么注入实体,然后获取其模块名称。的为什么我想要得到的名称的原因:的是因为我遵循命名约定,其中一个名为订单count.ts应该呈现的URL'/顺序/计数这是可以解决的与打字稿/ JavaScript的? 这里是我有: 的订单module.ts 的...阅读全文
我是一个新手AngularJS,和我有困难得到一个AngularJS形式才能正常工作。 Chrome开发工具告诉我,我的模块没有被加载。 I am an AngularJS newbie, and am having difficulty getting an AngularJS form to work corre...阅读全文
我是相当新的角度和使用它与JSON API文件。为了测试,我想使用免费的GitHub的API(我的函数的名称是,我将在以后的工作不同的JSON API)。我只是想看看我的职能与工作console.logs,但我在控制台收到此错误。I am fairly new to angular and using it with...阅读全文
是否有可能创建两个指令具有相同的模块名称?有了这两个文件Is it possible to create two directives with the same module name?Having this two filesangular.module('fabTemplate', []).directiv...阅读全文
我想测试一个角控制器为我的应用 fooApp ,定义如下:I want to test an Angular controller for my application fooApp, defined as follow:var fooApp = angular.module('fooApp', [ 'ngRout...阅读全文
考虑下面的一块code的:Consider the piece of code below: HTML文件的一部分:part of html file:{{name}}js文件的一部分:part o...阅读全文
我的角的应用程序的结构是这样的:My Angular app structure is like this: App.js angular.module('RateRequestApp', ['RateRequestApp.services','RateRequestApp.controllers','ui...阅读全文
'use strict';var trkiApp = angular.module('trkiApp',[ 'trkiApp.tStatus', 'trkiApp.feed'var tStatus = angular.module('trkiApp.tStatus', []).factory('Status', [...阅读全文
另一个基本问题AngularJS。我有两个AngularJS应用, slider.js (AngularUI)及 json.js 。Another basic AngularJS question. I have two AngularJS apps, slider.js (AngularUI) & json.js....阅读全文
我使用的自耕农角fullstack发生器,然后修改为我自己的目的而建造我的应用程序。我建dist文件夹来部署Heroku的使用哟角fullstack:部署的Heroku。它创造了我一个新的Heroku应用程序,当我cd到dist文件夹和混帐推Heroku上样样精通的伟大工程。我希望能够把我的现有Heroku的应用程序添...阅读全文
我实现了一个code,其中我还是坚持了这个问题。问题1: - 未捕获的ReferenceError:角没有定义问题2:-Uncaught错误:没有模块:CustomerSearch 我写我的code: - 和这里是我的看法页 <视图> <%@控制语言=C#AutoEventWireup =真...阅读全文
我有一个问题与AngularJS编译服务。我工作了的角,但我不能编译我的模板,(我可尝试用一个控制器,但是我不知道为什么它不工作)。I have an issue with AngularJS compile service. I am working out of angular but I can not com...阅读全文
我怎么上测试茉莉这个模块?问题是,这是非常困难的测试 $控制器因为函数隐藏在闭包内,这是非常困难的测试。how do I test this module on jasmine ? The problem is that it's very difficult to test the $controller bec...阅读全文
我想知道是否有使不整个应用程序唯一提供者的结构的方法,但仅跨越所配置它的模块I'd like to know if there is a way of making the configuration of a provider unique not across the entire application, bu...阅读全文
我已经安装使用亭子angularjs和materialjs。I have installed angularjs and materialjs using bower.凉亭安装角材料和注入ngMaterial'到我的应用程序,但收到此错误。And injected 'ngMaterial' into my ap...阅读全文
我不知道如何工作的模块化视。 I didn't understand how work modular depending. 我有4个模块,它们都依赖于彼此,如图图像。 I have 4 modules, they are dependent on each other, as shown in the pict...阅读全文
我发现了以下错误webstorm运行人缘试运行,而Hi I'm getting the following error in webstorm while running karma test runError: [$injector:nomod] Module 'ui.bootstrap', 'ui.unique...阅读全文
这是非常令人沮丧,即时通讯使用mean.js自耕农生成的应用程序,并不能得到似乎得到角料和运行。我看了有关问题的另一个问题计算器Angularjs与材料设计无法实例化模块ngMaterial 。所以,我更新了我的bower.json文件,并跑了亭子更新和亭子安装。它仍然不工作。在凉亭更新,凉亭给了我这个消息无法找到一个...阅读全文
我使用ngRoute模块,但它显示我错误所以有额外的文件需要添加使用此模块我搜索,但我did'nt发现像其他模块国土资源,饼干我们需要单独的文件是它ngroute如果还是让我在哪里可以找到这种 错误: - 未捕获的错误:无模块:ngRoute变种应用程式= angular.module('inventoryApp...阅读全文
我使用角1.2.6 。我试图用凉亭安装角动画和的...阅读全文
据我了解,NG-应用程序初始化在AngularJS模块如下:I understand that ng-app initializes a module in AngularJS as follows:var app = angular.module('myApp', []);阅读全文
试图用角$资源,其回来不的方法。通过稀疏的文档看,我能找到这样的:Trying to use the Angular $resource, and its coming back as not a method. Looking through the sparse documentation, I was able...阅读全文
我在加载框架的NodeJS AngularJs和jQuery使用RequireJs。 I load AngularJs and jQuery using RequireJs in nodeJs framework. 这是main.js require.config({paths: {angular: 'vendor...阅读全文