Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Component({
- providers: [ProductService]
- })
- class ProductComponent {
- product: Product;
- constructor(private productService: ProductService) {
- this.product = this.productService.getProduct();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement