Tagged Questions
1
vote
1answer
65 views
Is $routeChangeSuccess guarantied to be fired inside a newly instantiated controller?
Suppose we have an /example route and the ExampleCtrl associated:
.when('/example', {
templateUrl : 'example.html',
controller: 'ExampleCtrl'
})
&
ExampleCtrl = function(){
...
0
votes
2answers
581 views
Load controller dynamically based on route group
Is it possible to load a controller, it's js file, and a template dynamically based on a route group? Psuedo code which doesn't work:
$routeProvider.when('/:plugin', function(plugin) {
templateUrl: ...