Skip to content

Commit 61f96da

Browse files
committed
update project
1 parent d7d8331 commit 61f96da

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

angular100-d-o-c/src/app/hello/hello.component.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@ <h3>Your name: {{ user.name }}</h3>
1313
<label>Age </label><input type="number" [(ngModel)]="user.age" >
1414
</div>
1515
<br>
16+
<!-- <div *ngIf="user.age >= 13">-->
17+
<!-- Bạn có thể xem nội dung PG-13-->
18+
<!-- </div>-->
19+
<!-- <div *ngIf="user.age < 13">-->
20+
<!-- Bạn không thể xem nội dung PG-13-->
21+
<!-- </div>-->
22+
<div *ngIf="user.age >= 13; else noPG13">
23+
You are egliable to watch the content of PG-13
24+
</div>
25+
<ng-template #noPG13>
26+
<div>
27+
You are NOT egliable to watch the content of PG-13
28+
</div>
29+
</ng-template>
30+
<br>
1631
<button (click)="showInfo()">Click me!</button>
1732
</div>
1833

0 commit comments

Comments
 (0)