You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add support for angular-route-segment? It is basically a module that builds on ngRoute to provide features similar to ui-router, so the code looks similar to ngRoute (but with more features):
var watchForService = function ($rootScope) {
return $rootScope.service.id;
};
$routeSegmentProvider
.when('/', 'dashboard')
.when('/manage', 'manage')
.when('/manage/information', 'manage.information')
.segment('dashboard', {
resolve: {
summary: function ($http) {}
}
})
.segment('manage', {
resolve: {
service: function ($http) {}
},
controller: function ($scope, $http) {}
watcher: watchForService
})
.within()
.segment('information', {
watcher: watchForService
});
$routeSegmentProvider.segment({ resolve: function () {} }
$routeSegmentProvider.within().segment({ resolve: function () {} } for child route segments
$routeSegmentProvider.segment({ controller: function () {} }
$routeSegmentProvider.within().segment({ controller: function () {} } for child route segments
$routeSegmentProvider.segment({ watcher: function () {} }
$routeSegmentProvider.within().segment({ watcher: function () {} } for child route segments
I initially wanted to make a pull request, but wasn't sure if this should be implemented as a plugin or right in ng-annotate-main.js.
Thanks!
The text was updated successfully, but these errors were encountered:
Would it be possible to add support for angular-route-segment? It is basically a module that builds on
ngRoute
to provide features similar toui-router
, so the code looks similar tongRoute
(but with more features):$routeSegmentProvider.segment({ resolve: function () {} }
$routeSegmentProvider.within().segment({ resolve: function () {} }
for child route segments$routeSegmentProvider.segment({ controller: function () {} }
$routeSegmentProvider.within().segment({ controller: function () {} }
for child route segments$routeSegmentProvider.segment({ watcher: function () {} }
$routeSegmentProvider.within().segment({ watcher: function () {} }
for child route segmentsI initially wanted to make a pull request, but wasn't sure if this should be implemented as a plugin or right in
ng-annotate-main.js
.Thanks!
The text was updated successfully, but these errors were encountered: