All Questions
Tagged with angularjs-module angularjs-directive
24 questions
2
votes
1
answer
62
views
How do I hook an AngularJS directive into two different projects?
I am searching for a tutorial on specifically this, but don't seem to find it, so maybe its something I missed:
If I declare a module, saved as myproject.js
var myProject = angular.module('myProject'...
0
votes
1
answer
66
views
One controller not working out of the two I used in my angular module
I used two controllers in my angular module, but one is not working, I don't know what is wrong, I've browsed online for solution but I can't get what's wrong.
var app = angular.module('myWebsite'...
0
votes
1
answer
832
views
Can parent module directives be used in child modules like controllers?
Just as controllers are module "level" independent and can be used anywhere in the entire application stack I am wondering if there is a way for child module to use the parent modules directives ...
2
votes
2
answers
221
views
Angularjs Modules - Packaging Directives and Their Controllers
I have the following javascript code and i ran into a issue:
My .js file
angular.module('MyApp',['ngMaterial','ngMessages'])
.controller('MainCtrl',['$mdDialog',function($mdDialog'){
this.openDialog ...
6
votes
1
answer
9k
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?
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 ...
3
votes
1
answer
575
views
AnguarJS module to wrap javascript libraries
I'd like to use a library in my angular project that provides sliders written in javascript/jQuery. Therefore I would write a directive inside my project, with a certain interface to use the library-...
0
votes
1
answer
1k
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)
...
1
vote
1
answer
1k
views
How to reload / recompile / refresh directive in AngularJs?
I have installed the malhar-angular-dashboard module for the purpose of using widgets. After I configure my options the dashboard-layouts directive works fine and is displaying my widgets in the view. ...
0
votes
2
answers
218
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
(...
1
vote
1
answer
2k
views
How to create a simple dashboard angular widget?
I installed malhar-angular-dashboard module for my angular application and I want to create a simple widget that displays some dummy text.
HTML view
<div class="row">
<div ...
0
votes
1
answer
369
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
0
answers
60
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'})
<svg-...
3
votes
1
answer
2k
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: '<div></div&...
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.
...