loganrosen / ember-router-helpers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ember-router-helpers

CI Build

Compatibility

  • Ember.js v3.13 or above
  • Ember CLI v3.12 or above
  • Node.js v10 or above

Installation

ember install ember-router-helpers

Usage

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

About

License:MIT License


Languages

Language:JavaScript 94.0%Language:HTML 5.9%Language:Handlebars 0.2%