0.3.11 • Published 9 years ago

ui-navigator-service v0.3.11

Weekly downloads
95
License
MIT
Repository
github
Last release
9 years ago

ui-navigator-service

inject meta-info about the current route into your controllers and components

Screenshot

Demo

Check out the demo app to see it in action: demo app

You can also watch a free EmberScreencast that shows how to setup the addon and use it to create breadcrumbs.

Installation

Assumes Ember CLI > 0.2.3

ember install ui-navigator-service

Usage

By default this add-on will not inject itself automatically but you can do it where you need it by:

export default Ember.Route.extend({
  navigator: Ember.inject.service(),
  // ...
});

If however, you would like it to be auto-injected into certain objects you can specify that in your config/environment.js file. If, for instance, you wanted to have all Components get the service injected automatically, you would add the following:

module.exports = function(environment) {
  var ENV = {
    uiNavigator: {
      injectionFactories: [ 'component' ]
    }
  }
}
0.3.11

9 years ago

0.3.10

9 years ago

0.3.9

9 years ago

0.3.8

9 years ago

0.3.7

9 years ago

0.3.6

9 years ago

0.3.5

9 years ago

0.3.4

9 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.7

10 years ago

0.2.6

10 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago