Wednesday, 15 April 2015

angularjs - Angular: How to get $routeProvider after app.config -



angularjs - Angular: How to get $routeProvider after app.config -

i trying access $routeprovider in 1 of controller in order add together route. how do that?

function cont($scope,$routeprovider) { };

this doesn't work me; getting: error: unknown provider: $routeproviderprovider <- $routeprovider

$routeprovider , other providers can injected modules config block. want $routeprovider within controller?

angularjs

No comments:

Post a Comment