Gagan Gautam

Gagan Gautam

  • 2k
  • 128
  • 12.1k

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

Jun 23 2016 1:18 AM
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)