All Questions
Tagged with angularjs-module angularjs-scope
11 questions
4
votes
1
answer
608
views
Use angular-ui-notification in anuglar service instead of controller?
I am able to use above mentioned module in controller with below syntax but while try to use same in service its not working.
app.controller('regulationCtrl', function ($scope, $rootScope, $http, $...
2
votes
2
answers
386
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 ...
0
votes
1
answer
2k
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
1
answer
1k
views
Calling service.js file from controller
I have a service file which needs to be called from the controller. Can someone please tell the code which should go in the controller to get this service file. Thank you.
This is my service file code
...
2
votes
1
answer
1k
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 ...
2
votes
1
answer
290
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
2
answers
420
views
Angularjs : Texbox value not showing
In agularjs controller I am creating variable
var search = [];
search.area = 'xyz';
$scope.search = search;
And in html page
<input type="text" name="area" class="form-control" data-ng-model="...
1
vote
1
answer
73
views
How to inject controllers in AngularJS?
How do I get this setup to work?
app.js
var app = angular.module('app', ['ui.router', 'app.controllers']);
/* FooCtrl isn't available here, why not? */
controllers.js
var controllers = angular....
0
votes
0
answers
62
views
Learning Angular Seed Notation
I was following a question (ui bootstrap modal's controller 'is not defined'), which I then tried modifying for nested controllers, different scoping calls, and renaming/refactoring the ...
10
votes
2
answers
25k
views
AngularJS Modules/Scope Sharing
I recently started using AngularJS and the way I'm building my apps now is like this:
MainController.js
var app = angular.module('app', ['SomeController', 'MainController']);
app.controller('...
5
votes
1
answer
195
views
How do you call your module's controller function from an entirely separate module's controller?
I'm just getting to grips with Angular, but passing around scope is getting the better of me when I try to abstract reusable components into separate modules.
I'm using an Angular Youtube module ...