The angular.module is a global place for creating, registering and retrieving Angular modules. All modules (angular core or 3rd party) that should be available to an application must be registered using this mechanism.

learn more… | top users | synonyms

0
votes
0answers
6 views

google angular module don't work

I add this to my proyect: https://angular-ui.github.io/angular-google-maps/#!/ i follow the suggestion and add this files to my proyect mvc in the BundleConfig (Downloaded by Nuget): ...
1
vote
3answers
53 views

How can I have multiple controller files?

SOLVED So after viewing your responses and making minor changes to my code, I found a simple typo which prevented me to reach the result I was after. So thank you all to helping with where I was ...
0
votes
1answer
37 views

Angular JS: How to use ng-repeat with custom directive and dynamic model?

I've a template as follows: <div class="row search-panel"> <div ng-show="loadingAirports"> <i class="glyphicon glyphicon-refresh"></i> Searching... ...
0
votes
2answers
38 views

Angular js directive in module not working correctly

I have one module call "menuLeft", when module he initiate ,not loading correctly my directive, but if run my function en el method "run" correctly. I dont know why is this. This is my code ...
2
votes
1answer
25 views

How do you design a module that a user has to pass config data to when they depend on it?

I have an angular module that is basically a client side web service layer (work in progress). I have a module declaration, and a factory called "baseRequest". baseRequest is depended on by other ...
0
votes
2answers
33 views

Refer to service in run immediately after definition?

I would like to attach a string from a service to every request. Attempt: 'use strict'; angular.module('main') .service('Foo', function () { self.bar = 'haz'; }) .run(function ...
2
votes
1answer
43 views

Vanilla AngularJs not loading up.

I am new to Angularjs. Trying to make a basic application. Getting stuck. I loaded the angularjs <script type="text/javascript" ...
1
vote
2answers
35 views

Controller not working in Angular JS

I am new to Angular JS. To see the working of controller, I implemented this simple code where two numbers are taken as an input from the users and their sum is calculated in the controller and the ...
0
votes
1answer
19 views

How do angularJS modules work in multipage applications

If you have a webpage that uses one module across several pages, does that module need to be loaded every time a new page is opened or is it just loaded in the initial page (assuming there is no ...
0
votes
0answers
23 views

Running an initialize Parse function inside of an AngularJS module

I've read that a good way to initialize Parse is when the module is created. I made the following code, however Parse does not seem to be initializing when I run my program. Am I missing something ...
1
vote
1answer
38 views

Why am I getting the Angular $injector:modulerr error here? Using 1.5 beta

The markup <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Angular ...
0
votes
2answers
42 views

ReferenceError: invalid assignment left-hand side (app.js:41:27) & nothing is displayed angular

After starting my server I navigate to 'localhost:8000'. The only thing I see is console error "ReferenceError: invalid assignment left-hand side" for row $scope.userLogin() = ...
0
votes
0answers
63 views

angularjs list item displaying horizontally by using directive

I want to display angularjs material design list . I have used directives to achieve this. The problem is sub list item nodes are rendering in the same line of its parent Node. I want to render in a ...
0
votes
2answers
47 views

Function problems in AngularJs

I'm a beginner in Angular and I have a problem with the functions. I have a simple code. In that there are two alerts to probe they are not getting called. HTML <div ...
-1
votes
1answer
178 views

Angular: Module was created but never loaded

I am have trying to fix this but not able to find a solution since a long time. I an angular newbie and trying to make my website home an angular app. The angular app has a controller and 2-3 ...
0
votes
1answer
38 views

Rootscope for Modules in Angular Js

Does having multiple modules in an angular app means there are multiple $rootScope? If yes, how can we communicate between multiple $rootScopes?
2
votes
1answer
24 views

Dependencies within the module dependencies?

If mainApp has dependencies on module app1, app2, like angular.module("mainApp", ['app1', 'app2']), this does not imply the dependencies between app1 and app2, right? Or say, this does not mean ...
0
votes
1answer
37 views

Separate nav from ng-view

I'm brand new to Angularjs and am trying to set up a new site but I'm confused as to the set up. I have a module and am using $route to successfully navigate but I'm lost as to what to do with my nav. ...
0
votes
2answers
42 views

Angular modules based on conditions

Is there a way to load/specify modules based on conditions inside a controller ? var app = angular.module('app',['ngRoute']); app.controller("DemoCtrl",["$scope",function($scope){ var a = true; ...
0
votes
1answer
32 views

App Dependency wierd behaviour AngularJS

First I am very very new to AngularJS so it might be a newbe problem. I have a declaration of my app Dependancies in my app.js file: (function () { angular.module('inspinia', [ ...
2
votes
1answer
236 views

AngularJS Error: $injector:unpr Unknown Provider githubProvider <- github <- MainController

I'm trying to build my own service by following the example in the documentation for the factory methodology. I think I've done something wrong however because I continue to get the unknown provider ...
4
votes
5answers
196 views

Angular.js Controller Not Working

I'm new to Angular and I'm going through the Intro to Angular videos from the Angular site. My code isn't working and I have no idea why not. I get the error Error: ng:areq Bad Argument Argument ...
1
vote
1answer
37 views

Angularjs $injection::unpr error

I am trying to inject my service, but I keep getting unpr error. I followed the angularjs doc, but it didn't seem to solve it. I am at a loss for why this error keeps coming up. My Service ...
0
votes
1answer
60 views

Making promises in modules

I try to make facebook registration module in my app. Facebook API is faster than my Angular controller, so promise should be used here. The problem is that $q seems to be an empty object and defer ...
0
votes
2answers
115 views

Swapping AngularJS syntax causing an error

so I have been making websites for a while now but only really things for display and information. I thought I would have a go with AngularJs, so I followed the guide on codeschool. I had worked for a ...
1
vote
1answer
51 views

Error: [ng:areq] Argument 'TasksCtrl' is not a function, got undefined

I started receiving the error and can't figure out what's wrong. Am I missing something? js var app = angular.module('Todolist', []); app.controller('TasksCtrl', [ '$scope', function($scope) { ...
3
votes
3answers
53 views

Where is the controller in this simple AngularJs page?

I am told that every AngularJS page with the ngApp directive has a controller, providing for $scope. In the earliest, simplest example given by the W3Schools site the code has no ngController tag: ...
1
vote
2answers
29 views

Whis is the error in angular, I couldnot find it

here is my code.. where I made problem.. please help me out.. I am trying to create a controller what fill fetch data and show in html li part.. but I don't understand where is the error.. I have ...
0
votes
1answer
79 views

accessing collection inside json object angular

I am new to angular in the following controller i need to access the object store in my html. But it is not working. Any help (function () { 'use strict'; ...
0
votes
0answers
24 views

How to make configurable directives via providers/ .config()?

Problem: I want to make a directive that works like this: svg-icon('company-logo') I'd also eventually like this to be (jade/html): svg-icon('company-logo', { height: '3em', width: '3em'}) ...
0
votes
1answer
103 views

Multiple partial views on AngularJS

I have an AngularJS application that has a list of contents on the menu. When the user clicks on an item on the menu, the content loads on the main view. There are multiple content types: When "1" ...
2
votes
0answers
28 views

Should I use only one single module in angularjs

I want to know what're the drawbacks of declaring and using ONLLY ONE module in my SPA? Does it reduce testability? Does it impact the performance? Does it make code less readable or maintainable? ...
1
vote
3answers
259 views

Meaning of the empty array in angularJS module declaration

In my previous question, I understand that the code var app = angular.module('myApp', []); connects the module app to the view myApp. I would like to know why we are having the empty array [] in the ...
-1
votes
1answer
56 views

AngularJS: Using multi modules and communicating between modules?

I am trying to find some good tutorials or documents explaining AngularJS and multi modules. From what I understand its a good idea to separate angular into modules instead of using 1 module as per ...
0
votes
1answer
80 views

Dynamically register directive at runtime

Normally, directives are registered on a module by using the directive method: .directive('MyDirective', function (MyDep) { return { restrict: 'E', template: ...
2
votes
1answer
75 views

AngularJS module dependency injection sharing its dependencies with parent module

I have an AngularJS module: angular.module("app", ['ui.bootstrap', 'ngRoute', 'ngGridPanel']).config(function($routeProvider) { As you can see it has ngGridPanel included via dependency injection. ...
1
vote
1answer
88 views

My Basic Angular App failing me when i'm designing my First Mean stack UI

app.js var myApp = angular.module('myApp',[]); myApp.controller('mainCtrl',function($scope){ $scope.name="vignesh"; }); I'm doing a basic app building ...
2
votes
1answer
254 views

Angularjs Uncaught Error: [$injector:unpr]

I am developing shoping website with java and I am using angurajs. I have problem with thise files: DashboardControll.js 'use strict'; var app = angular.module("DashboardApp", []); ...
8
votes
2answers
59 views

List dependencies injected

Is there a way to know what dependencies were injected into my Angular module? angular.module('myModule', [ 'ui.bootstrap' ]) .controller('myController', [function () { // var dependencies = ...
5
votes
2answers
48 views

controller function in angularjs?

I am new to angular js Controller is not working correctly in my code i am trying to run following code <!DOCTYPE html> <html data-ng-app > <head> <title>Using AngularJS ...
1
vote
0answers
41 views

Best way to load AngularJs modules

I would like to implement a dynamic page what get list of name of modules from server and after it, it will load all modules what was in that list. For example if it get a table module, then load a ...
1
vote
1answer
72 views

angularjs loadModules “should have a dummy test”

Running karma unit tests for my project yields: Browser (OS) XYZ section should have a dummy test for XYZ FAILED minErr/<@../angular.js:63:12 loadModules/<@../angular.js:4141:15 ...
15
votes
2answers
852 views

AngularJS - module dependencies, naming clash

I have two third-party modules, both defining a factory with the same name. Obviously, I don't have any control over the naming of those modules without resorting to a kludge. Additionally, I have ...
0
votes
0answers
68 views

Convert to module application- AngularJS module dependency

I started to remodel my AngularJS (fully working) page to modular version. I grouped my files to 4 modules: -band -user -layout -core And main app.js with: (function () { ...
0
votes
2answers
75 views

Why does Yeoman scaffolding for AngularJS use the same module for each tab

I'm new to AngularJS and setting up my projects with Yeoman. Yeoman generates a scaffold for a basic AngularJS tab nav web site controlling tab content in the following way. app.js: 'use strict'; ...
0
votes
1answer
349 views

Module not getting injected in another module

I am trying to inject a module as a dependency of another module. Here's my code for that - USER.JS - 'use strict' var module = angular.module('startUp', ['ngMaterial', 'ngRoute', ...
-1
votes
1answer
124 views

AngularJS: Can I attach a callback to a module's run method?

High-Level Problem: I'd like to know if the current user is logged into Google Plus. Partial Solution: Specify a callback method to the onload parameter. po.src = ...
1
vote
1answer
139 views

Add Angular Module

I am trying to add angular-gantt plugins to my application. Firstly; angular.module('myApp',['directives', 'services', 'controllers', ... and some more] Then when I need angular-gantt on my ...
0
votes
2answers
64 views

Get service from separate angular module

You have 2 angular modules, and one of those modules has a service that you want to use in the other module: var moduleA = angular.module ('moduleA', []) .service('FirstService', ...
2
votes
0answers
115 views

How to setup the dependency for the Forge library?

I am trying to include this library (Digital Bazaar / Forge) in my project: https://github.com/digitalbazaar/forge To include the dependency and have the forge object available through my angularjs ...