Skip to content

Commit 63f5dfd

Browse files
JeanMecheAndrewKushnir
authored andcommitted
docs: fix inconsistencies in getting started (#50275)
Fixes #50274 PR Close #50275
1 parent 239e7e6 commit 63f5dfd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

aio/content/examples/getting-started-v0/src/app/product-list/product-list.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { products } from '../products';
88
styleUrls: ['./product-list.component.css']
99
})
1010
export class ProductListComponent {
11-
products = products;
11+
products = [...products];
1212

1313
share() {
1414
window.alert('The product has been shared!');

aio/content/examples/getting-started/src/app/product-alerts/product-alerts.component.1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { Product } from '../products';
1414
export class ProductAlertsComponent {
1515

1616
// #enddocregion as-generated
17-
@Input() product!: Product;
17+
@Input() product: Product | undefined;
1818
// #docregion as-generated
1919

2020
}

0 commit comments

Comments
 (0)