/ember-router-helpers

Primary LanguageJavaScriptMIT LicenseMIT

ember-router-helpers

Build Status

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 onclick={{transition-to "parent.child"}}></button>
  • is-active
{{is-active "parent.child"}}
  • url-for
{{url-for "parent.child"}}

This rest of this README outlines the details of collaborating on this Ember addon.

Installation

  • git clone <repository-url> this repository
  • cd ember-router-helpers
  • npm install

Running

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit https://ember-cli.com/.