angularjs - Yeoman generated Angular application not loading injected dependencies -


probably newbie's question, need add ngdialog module angular. noticed after installing bower yeoman doesn't automatically update files, added

<script src="bower_components/ngdialog/js/ngdialog.js"></script> 

to index.html.

i went ahead , added 'ngdialog' main module dependencies, this

angular.module('sigaapp', ['ngdialog'])   .controller('mainctrl', function () {     this.awesomethings = [       'html5 boilerplate',       'angularjs',       'karma'     ];   }); 

i added $scope , 'ngdialog' controller, this

angular.module('sigaapp')     .controller('mynewctrl', ['$scope', 'ngdialog',         function ($scope, ngdialog) {             $scope.open = function () {                 ngdialog.open({ template: 'templateid' });             };         }     ] ); 

that's did. grunt refreshes page no error, , page console shows no error, page shows nothing, , have no idea why.

should load dependencies automatically, , shouldn't adding these injections manually? there standard way add dependencies?

any appreciated. thanks!

answering own question: removed module , installed bower install ng-dialog --save adding --save command line.

what --save parameter does, "save installed packages project's bower.json dependencies" (quoting bower help) , far i'm aware of, there's yeoman takes dependencies update index.html.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -