3
Answers

Routing In AngularjS using $stateProvider

Gagan Gautam

Gagan Gautam

8y
334
1
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)