 <p>You have to use <code>providers</code> instead of <code>injectables</code></p> <pre class="lang-ts prettyprint-override"><code>@Component({ selector: 'my-app', providers: [NameService] }) </code></pre> <p><a href="https://github.com/Mellbourn/angular2-step-by-step-guide">Complete code sample here</a>.</p>