Created
June 27, 2016 05:50
-
-
Save tkssharma/4a47c43324036c3578753bf5e3aef88c 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
@Component({ | |
providers: [ProductService] | |
}) | |
class ProductComponent { | |
product: Product; | |
constructor(private productService: ProductService) { | |
this.product = this.productService.getProduct(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment