1.1.0 • Published 8 years ago
ember-with-service v1.1.0
Ember-with-service
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>