We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bde40f commit c0ec1d6Copy full SHA for c0ec1d6
aio/content/examples/getting-started/src/app/product-alerts/product-alerts.component.1.ts
@@ -1,6 +1,6 @@
1
// #docplaster
2
// #docregion as-generated, imports
3
-import { Component } from '@angular/core';
+import { Component, OnInit } from '@angular/core';
4
// #enddocregion as-generated
5
import { Input } from '@angular/core';
6
// #enddocregion imports
@@ -12,8 +12,13 @@ import { Input } from '@angular/core';
12
styleUrls: ['./product-alerts.component.css']
13
})
14
// #docregion input-decorator
15
-export class ProductAlertsComponent {
+export class ProductAlertsComponent implements OnInit {
16
17
@Input() product;
18
// #docregion as-generated
19
+ constructor() { }
20
+
21
+ ngOnInit() {
22
+ }
23
24
}
0 commit comments