angular-route-segment icon indicating copy to clipboard operation
angular-route-segment copied to clipboard

Custom options in segments

Open lardissone opened this issue 12 years ago • 1 comments

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?

lardissone avatar Oct 28 '13 22:10 lardissone

https://github.com/artch/angular-route-segment/issues/25

cdiaz avatar Dec 08 '15 20:12 cdiaz