There was an error while loading. Please reload this page.
1 parent d7d8331 commit 61f96daCopy full SHA for 61f96da
angular100-d-o-c/src/app/hello/hello.component.html
@@ -13,6 +13,21 @@ <h3>Your name: {{ user.name }}</h3>
13
<label>Age </label><input type="number" [(ngModel)]="user.age" >
14
</div>
15
<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
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
29
+ </ng-template>
30
+ <br>
31
<button (click)="showInfo()">Click me!</button>
32
33
0 commit comments