javascript - bower install not generate library in my project -
(function () { 'use strict'; angular.module ('newapp', [ 'nganimate', 'ngcookies', 'ngaria', 'ngcookies', 'ngmessages' ]) .config(function ($routeprovider) { $routeprovider .when('/', { templateurl: 'views/main.html', controller: 'mainctrl', controlleras: 'main' }) .otherwise({ redirectto: '/' }); }); })(); i trying install bower using command "bower install". gives nothing , no error coming.
try passing global angular in iife if added angular in html script tag
(function (angular) { 'use strict'; angular.module ('newapp', [ 'nganimate', 'ngcookies', 'ngaria', 'ngcookies', 'ngmessages' ]) .config(function ($routeprovider) { $routeprovider .when('/', { templateurl: 'views/main.html', controller: 'mainctrl', controlleras: 'main' }) .otherwise({ redirectto: '/' }); }); })(angular);
Comments
Post a Comment