0.3.11 • Published 8 years ago

ui-navigator-service v0.3.11

Weekly downloads
95
License
MIT
Repository
github
Last release
8 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

8 years ago

0.3.10

8 years ago

0.3.9

8 years ago

0.3.8

8 years ago

0.3.7

8 years ago

0.3.6

8 years ago

0.3.5

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.7

8 years ago

0.2.6

8 years ago

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago