6
Answers

how to inject controller in app.js using $stateprovider..

Gagan Gautam

Gagan Gautam

8y
336
1
hi i am starter in angularjs. I want to inject controller in app.js using $stateProvider.
This is my code
 
$state('/home',{
url:'home',
templateurl :'home.html',
controller : ' homecontroller'
})
 
 
but controller does not load when we run tha application
 
 
 

Answers (6)