Gagan Gautam

Gagan Gautam

  • 2k
  • 128
  • 12.1k

Routing In AngularjS using $stateProvider

Jun 28 2016 3:34 AM
How can i use routing in AngularJs Usiing $stateProvider.
 
$steteProvider('/home',{
url:'/homepage',
templateUrl:'home.html',
controller:'homecontroller'
})
 
i am not able to load controller on runtime.Error comes out controller not found.I searched more times on internet but i did not get right answer.If every one know this type routing.
 
Please give me suitable example 
 

Answers (3)