-
-
Notifications
You must be signed in to change notification settings - Fork 783
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update video with thumbnail to all articles
- Loading branch information
Showing
37 changed files
with
847 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,19 +9,19 @@ Giả sử chúng ta có một danh sách các tác giả của các cuốn sác | |
authors = [ | ||
{ | ||
id: 1, | ||
firstName: "Flora", | ||
lastName: "Twell", | ||
email: "[email protected]", | ||
gender: "Female", | ||
ipAddress: "99.180.237.33", | ||
firstName: 'Flora', | ||
lastName: 'Twell', | ||
email: '[email protected]', | ||
gender: 'Female', | ||
ipAddress: '99.180.237.33', | ||
}, | ||
{ | ||
id: 2, | ||
firstName: "Priscella", | ||
lastName: "Signe", | ||
email: "[email protected]", | ||
gender: "Female", | ||
ipAddress: "183.243.228.65", | ||
firstName: 'Priscella', | ||
lastName: 'Signe', | ||
email: '[email protected]', | ||
gender: 'Female', | ||
ipAddress: '183.243.228.65', | ||
}, | ||
// more data | ||
]; | ||
|
@@ -101,24 +101,18 @@ Ví dụ: | |
|
||
```html | ||
<div *ngFor="”let" item of list”> | ||
<div *ngIf="”somethingGoood”"> | ||
More code | ||
</div> | ||
<div *ngIf="”somethingGoood”">More code</div> | ||
</div> | ||
``` | ||
|
||
Giả sử nếu bạn không được phép hoặc không muốn sinh ra một div thừa thì sao? Chúng ta có thể convert NgIf về dạng ng-template như buổi trước hoặc dùng ng-container để dùng: | ||
|
||
```html | ||
<div *ngFor="”let" item of list”> | ||
<ng-container *ngIf="”somethingGoood”"> | ||
More code | ||
</ng-container> | ||
<ng-container *ngIf="”somethingGoood”"> More code </ng-container> | ||
</div> | ||
<div *ngFor="”let" item of list”> | ||
<ng-template [ngIf]="”somethingGoood”"> | ||
More code | ||
</ng-template> | ||
<ng-template [ngIf]="”somethingGoood”"> More code </ng-template> | ||
</div> | ||
``` | ||
|
||
|
@@ -137,7 +131,7 @@ Mục tiêu Day 6 sẽ là về `Attribute directive` để áp dụng style, cl | |
|
||
## Youtube Video | ||
|
||
https://youtu.be/q7CQPEPSkD0 | ||
[](https://youtu.be/q7CQPEPSkD0) | ||
|
||
## Author | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.