Created
February 5, 2017 10:04
-
-
Save codemilli/c849c50eecca35c510b619032cbc0153 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import { Injectable, Component } from '@angular/core'; | |
@Injectable() | |
export class AService { | |
// ... | |
} | |
@Component({ | |
// ... | |
providers: [ AService ] | |
}) | |
export class AComponent { | |
constructor(public aService: AService) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment