opitzconsulting / jquery-mobile-angular-adapter

jquery mobile angular adapter
MIT License
517 stars 114 forks source link

Routing: Allow access to properties of `$routeParams` in `onActivate` expression of routes #107

Closed tbosch closed 11 years ago

tbosch commented 11 years ago

This idea came up in issue #103, see the example there.

Tobias

mlegenhausen commented 11 years ago

+1 Another cool feature would it be to directly inject the url parameters in the onActivate method. E.g.

$routeProvider.when('/:someUrlParam', {
  resolve: {
    someResolveParam: 'foo'
  },
  onActivate: 'init(someUrlParam, someResolveParam)'
}