adopted-ember-addons / ember-router-helpers

MIT License
39 stars 14 forks source link

ember-router-helpers

CI Build

Compatibility

Installation

ember install ember-router-helpers

Usage

{{#let (route-params "parent.child") as |routeParams|}}
  <a href={{routeParams.url}} class={{if routeParams.isActive "active" "inactive"}}>Blah</a>
{{/let}}
<button {{on "click" (transition-to "parent.child")}}></button>
<button onclick={{replace-with "parent.child"}}></button>
{{is-active "parent.child"}}