Showing posts with label grunt. Show all posts
Showing posts with label grunt. Show all posts

Thursday, 23 June 2016

Unknown provider: $stateProvider

[$injector:unpr] Unknown provider: $stateProvider <- $state <- LoginCtrl

problem :
missing angular-ui-router.js

<script src="bower_components/angular-ui-router/release/angular-ui-router.js"></script>


steps :
1.
go the project folder and from commandline.

cmd :  bower install angular-ui-router

ref : git

the above command will download package

2. start grunt server

cmd : grunt serve

Saturday, 30 April 2016

install grunt server and start the grunt server


install grunt server and start the grunt server

1) install grunt server.
cmd : npm install -g grunt-cli

2) start grunt server.
note : after creation of yeoman project go to directory
cmd : grunt server

Friday, 29 April 2016

angular.js:13550 Error: [ng:areq] Argument 'MynameCtrl' is not a function, got undefined

angular.js:13550 Error: [ng:areq] Argument 'MynameCtrl' is not a function, got undefined

solution :

include controller.js in index file or the required reference file where you are calling

Thursday, 28 April 2016

Genrating project scaffolding for angular js using Yeoman.

step 1.
a) install nodejs window/linux machine or based on the os you have.
ref : nodejs
step 2.
a) install Yeoman ,grunt,bower.
ref : Yeoman
cmd :  install yo.
b) From the given choose angular js and click next.

note :
a) Yeoman : for generating project scaffolding.
b) bower : package manager.
c) grunt : to perform repetitive task, minification,unit testing.