You can think of an AngularJS module as a container for the different parts of your app – controllers, services, filters, directives, etc.

learn more… | top users | synonyms

1
vote
0answers
19 views

how to declare Angular module for avoiding [$injector:modulerr] error? [on hold]

I am new to angular and was trying to create a simple angular maps integrated web application. Following a tutorial I created the app but unable to get rid of this ONE error. I tried doing much but ...
0
votes
1answer
39 views

Angular Js routing not working properly when file separated

//this is the app.js go down below to see controller.js angular.module('myFirstApp',['ngRoute']) .config(function($routeProvider){ $routeProvider.when('/contact',{ templateURL : 'contact....
0
votes
1answer
28 views

What is the difference between using bower and npm for adding angular module?

I am trying to add a new angular module. https://github.com/angular/bower-angular-animate I noticed that there are 2 ways to add an angular module. One is using bower. The other is using npm. $ npm ...
0
votes
1answer
34 views

How to return widgetDefinitions with data service in malhar-angular-dashboard?

I have installed the malhar-angular-dashboard module. I do not want to hard code my widgetDefinitions, so I created a service witch will return the array with the widget objects. I am using a rest ...
0
votes
1answer
39 views

AngularJS set constant according to the result of an http request

I want to set module.constant according to a tag which is the result of an HTTP request. Below is the demo code in my project; code in app.js (function(){ var myApp = angular.module('myApp',['...
-1
votes
0answers
15 views

How to build completely independent module keeping in mind all module should have their own translation?

I am building angular app comprising several module. I want to keep all module completely independent so they can be reused other application. I am using angular-translate module to provide ...
0
votes
1answer
55 views

Bootstrapping an Angular 2 application with remote data

Im am attempting to setup an application where my AngularJS client app communicates with an API server. In this API server i have various environment variables declared to match it's different ...
1
vote
2answers
190 views

Angular 2 RC.5 Shared Module can't find pipes

I'm updating my app to use a module structure and I ran into a weird issue when trying to add my pipe component into a shared module. From what I've read I have everything set up right, so I must be ...
1
vote
1answer
25 views

How to design two modules include the same dependency issue in angularjs

I have an app module which include another modules for example module a and b. But both module a and b depends on module c. See the followings var app = angular.module('app', ['a', 'b']); app....
0
votes
2answers
29 views

declare Angular2 component at top level module and use at lower level modules

I am working on Angular2 application using Angular2 final release. This is my application scenario. I have a component which I want to use same component at two different modules at two different ...
3
votes
1answer
333 views

AngularJS - Can we remove/delete module?

I'm trying to clear memory of previous module of my app which Im not going to use after I've routed to a different location. So for example my "WebApp" is my main angular module of my app which has ...
0
votes
0answers
46 views

Upgrading angular 1 to 2

I'm trying to follow the upgrade steps for Angular 1 to 2. I've put in the following code to allow for a hybrid application: import * as angular from 'angular'; import {upgradeAdapter} from './...
1
vote
1answer
802 views

AngularJS module lifecycle

Just googling "AngularJS Module Lifecycle". Could not find anything interesting. Can anybody on the planet explain me this. I want to understand how exactly angular.module("ui.bootstrap", [ "ui....
1
vote
1answer
50 views

factory is undefined when using ng-file-upload

I have a form in which I save some details and upload a file. I have a factory from which I get some data. When I use ng-file-upload the factory is undefined. Here is the code: angular.module('...
0
votes
1answer
39 views

“Restangular” Error: $injector:modulerr Module Error

I try to make authorization in my app with angular. I created app.service and injected "Restangular". And i have this error Error: $injector:modulerr Module Error Failed to instantiate module ...
0
votes
0answers
33 views

AngularJs inject providers error

I'm trying to inject two providers and I have an error: Error: [$injector:modulerr] Failed to instantiate module App due to: [$injector:unpr] Unknown provider: $paginationTemplateProvider Here's ...
0
votes
1answer
122 views

Angular2 RC7 Http module error loading

I have an Angular2 test application that was written in RC4 that worked fine. I'm now trying to upgrade it to RC7 and I'm getting the following error message Error: SyntaxError: Unexpected token <...
0
votes
0answers
108 views

Angular2 Modules - How to share modules among different apps leveraging lazy loading

I have App1 and App2 (different apps) that need to share a functionality provided by module ModA. Both App1 and App2 want to use ModA via routing (i.e. ModA a set of 'pages' connected to their ...
0
votes
1answer
47 views

in angular how to add nested object to ng-repeat

I'm a complete angular noob so please forgive the rudimentary question. I have a post/comment structure for my model that looks like this: [ { "title": "awesome post", "desc": "...
0
votes
0answers
115 views

how can i use “SystemJsNgModuleLoader” in angular 2 to import dynamic modules to app?

in last release version of angular (rc6) there is new api SystemJsNgModuleLoader . dose anyone know how can i use this api to load dynamic module in the app ?
0
votes
0answers
30 views

Anything similar to md-datepicker? (Infinite smooth scroll calendar)

I'm working on a project that's created a custom implementation of material design. One of the things I'm improving is their admin tools, and I'm trying to find a particular datepicker. Are there any ...
0
votes
2answers
63 views

pass value from one different app module controller to another app module service using $rootScope in angularjs

I am doing project in angularjs,my requirement is need to pass value from one different app module controller to another app module service using $rootScope Here my part of code Login module and ...
0
votes
2answers
850 views

Angular 2 module lazy-loading not working

I'm trying to get my head around Angular 2 (RC5) lazy-loading of modules by building a basic structure of a site with two sections, welcome and backend (think login page and main site). I've set it up ...
4
votes
2answers
4k views

Utilizing Multiple Custom Modules in Angular 2 (RC5)

I have upgraded an ever-growing ng2 app to RC5 and have plopped all my components/pipes into one fat main module. To fight against the bloat, I was trying to carve my app into separate modules (also ...
1
vote
0answers
125 views

ngJsTree TypeError: scope.tree.jstree is not a function

I have included needed dependencies and the ngJsTree module to my app.module. But this still happens: angular.js:13424 TypeError: scope.tree.jstree is not a function at m.scope.destroy (ngJsTree.min....
0
votes
0answers
77 views

Error: $injector:unpr Unknown Provider $$rAFProvider

Im getting this error. As i keep clicking the links i get: Error: $injector:modulerr Module Error Failed to instantiate module Hive due to: Error: [$injector:modulerr] http://errors.angularjs.org/1....
0
votes
0answers
86 views

ngMaterial dependency not found

For some reason ng-Material is not found in my app , and its giving me errors! Ill show you the code and the error down below: index.html: <!DOCTYPE html> <html> <head> <...
0
votes
1answer
142 views

What is the calling order of angularjs functions (config/run/controller)? [duplicate]

There are controllers constants directives services factory run config filters functions of angular.js. What is the calling order of all these modules?
0
votes
0answers
30 views

AngularJs : parent/child Vs Independent modules and controllers

(1) Nested (parent/child) modules with controllers <html ng-app="myapp1"> <div ng-controller="ctrl1"> <div ng-app="myapp2"> <div ng-controller="ctrl2"> ...
3
votes
1answer
97 views

How to get angular.js module's value from another module

I have two modules in my angular.js app. In module1 (example name) I have a value defined like angular.module('module1') .value('ID', '') .service('someService', function(ID) { this....
1
vote
1answer
29 views

Angular add service to multiple modules at once

I have a module that has a service defined as angular.module('mean.system').service('helperService', ['$rootScope', '$q', '$log', function ($rootScope, $q, $log) { I am defining another module that ...
3
votes
1answer
72 views

Unable to access scope properties of parent directive in the child directive when parent scope is either true or isolated

I'm building a custom login module directive with parent tag housing child tags like username & password. I've defined username and password in the parent scope and communicating it using ...
2
votes
1answer
64 views

Angular won't load my service module

I have the following three files for an app using Angular 1.5: app.js angular.module('myApp', ['ngRoute', 'myApp.service']) .controller('AppController', AppController); AppController.$inject = [...
0
votes
3answers
422 views

How to get config values from server in Angular?

My application needs some config values on application startup. Suggestions from the community is to store them as constant as separate module, preferably in separate .js file. This might work for me. ...
0
votes
0answers
25 views

Why run method of this module isn't run? [duplicate]

In following example there are three modules, first one is required by second module. And this works when referenced using ng-app in div. But third module that goes by the name of someonesApp does not ...
0
votes
1answer
18 views

Should angular .value and .constant be used to store initialization values and utility functions?

I have a fairly complex angularJS application built with many modules, factories and controllers. When this was started I used a parameters.js file to store initialization vars and constants used in ...
2
votes
1answer
32 views

Another way to inject in Angular

I have a template and I'm changing the way to Inject dipendecies. It has the 'classic' way to inject. I want to replace it with the compact form. I can't do these line of code. I've tried but I can't ...
4
votes
1answer
116 views

AngularJs - Module defined but still gets “not available” error

I'm trying to build password matching mechanism using angular directive and seems like I'm missing something. I defined ng-app and ng-controller but I still get an error message stating the the module ...
0
votes
0answers
159 views

Angular modules does not Load

I am stuck up with this for some time. I am not able to load any modules apart from 'ngRoute' in my angular.module command... When I try to add 'angular-animate' it does not load the html page, it ...
1
vote
1answer
272 views

Load angular module at runtime with/without ocLazyLoad

I have a couple of modules that I am trying to load at runtime based on some conditions. Currently I am using theocLazyLoad module but I am the loaded module's are not working at all. Everything loads ...
0
votes
0answers
33 views

Building Angular Modules form jQuery Plugins

Hi All Thank you in advance. I am faced with a task of converting an HTML and jQuery intensive website and make it work with AngularJs. The issue is that it has a lot of plug-ins like http://...
0
votes
1answer
32 views

Angular Services within Modules

Having difficulty injecting a service into another service. I want a service hierarchy, where I can pass/request logic to/from the parent service, for sake of brevity and encapsulation. So for ...
0
votes
2answers
51 views

Angular can not find the injector modulerr error

here is my code: I Have no idea where the error should be. i just received this error. Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.5.0/$injector/modulerr?p0=...
0
votes
0answers
60 views

Angular JS: Importing Sub Modules under a Main Module

Definition: Module: app, app.core (common services), app.widgets(common directives) Components: Actual Controllers, Services, Directives definition I have been working with separation of concerns and ...
0
votes
3answers
111 views

AngularJS use angular module in custom service

I have a custom service for generating token, in this service I need to use an MD5 function, the MD5 function is in the module angular-md5 here is my service code, the generate_token function use md5....
0
votes
1answer
40 views

List of modules already bootstrapped in angularjs

I want to know the list of modules already bootstrapped. I have use ng-app with main modules but there are small modules which are inside it . I have used $controller service inside main controller ...
0
votes
1answer
385 views

Use angular 1.5 component from module a in module b (using ES2015)

I'm trying to create a new setup for an app using jspm, systemjs and angular 1.5. I have a structure more or less like this: src common (pieces common to entire app, some services, images, etc) ...
0
votes
0answers
35 views

Angular dynamic content using modules

So my application is growing and becomming a fullscale enterprize application. Because of this clients of my application has different request as to how it should look and feel. Some of them want ...
0
votes
1answer
522 views

AngularJs - Injecting child module into other child module

I have a scenario which might sound stupid but I'm stuck and trying to understanding what might be causing it to not work. I have an angular app which has three modules for now var app = angular....
0
votes
2answers
108 views

angular unknown provider error when published site

I have developed a little app and now i wanted to publish it to azure for the first time. It's my first time i use angular in any project and i have got something wrong. I get this error: Error: [...