angular-route-segment
angular-route-segment copied to clipboard
Custom options in segments
I was using custom options with ng-route, that were really useful, because I can provide settings based on the route.
Tried something like that with angular-route-segment but didn't worked.
Something like this would be awesome:
segment('dashboard', {
templateUrl: loc + 'templates/dashboard.html',
controller: 'DashboardCtrl',
requireLogin: true,
hasSidebar: true
}).
Or do you recommend a better way to do this?
https://github.com/artch/angular-route-segment/issues/25