docs: update product-alerts.component.1.ts (#29917)

Make the example match the generated output seen in StackBlitz as shown https://next.angular.io/getting-started#input step 2 "Open product-alerts.component.ts."

PR Close #29917
This commit is contained in:
Brad Green 2019-04-15 15:14:23 -07:00 committed by Ben Lesh
parent 4bde40f7c2
commit c0ec1d63ff
1 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,6 @@
// #docplaster // #docplaster
// #docregion as-generated, imports // #docregion as-generated, imports
import { Component } from '@angular/core'; import { Component, OnInit } from '@angular/core';
// #enddocregion as-generated // #enddocregion as-generated
import { Input } from '@angular/core'; import { Input } from '@angular/core';
// #enddocregion imports // #enddocregion imports
@ -12,8 +12,13 @@ import { Input } from '@angular/core';
styleUrls: ['./product-alerts.component.css'] styleUrls: ['./product-alerts.component.css']
}) })
// #docregion input-decorator // #docregion input-decorator
export class ProductAlertsComponent { export class ProductAlertsComponent implements OnInit {
// #enddocregion as-generated // #enddocregion as-generated
@Input() product; @Input() product;
// #docregion as-generated // #docregion as-generated
constructor() { }
ngOnInit() {
}
} }