ember-with-service

1.1.0 • Public • Published

Ember-with-service

npm version Ember Observer Score This README outlines the details of collaborating on this Ember addon.

Installation

  • ember install ember-with-service

Use

Let's say we wanted to inject the session service into our template:

<nav>
  {{#with-service 'session' as |session|}}
    <ul>
      {{#if session.isAuthenticated}}
        <li>{{#link-to 'logout'}}Logout{{/link-to}}</li>
      {{/if}}
    </ul>
  {{/with-service}}
</nav>

/ember-with-service/

    Package Sidebar

    Install

    npm i ember-with-service

    Weekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • rtablada