Please enable JavaScript.
Coggle requires JavaScript to display documents.
Angular (Fundamental (data binding (*ngFor - use of not in (*ngIf = "…
Angular
Fundamental
data binding
-
*ngFor - use of not in
*ngIf = "value"
true if It not: '', false , 0
-
-
-
property binding
[hero]="selectedHero"
-
to use hero from the child component use Input from Angular/core to tell hero is the property of that compoenent
-
-
-
-
-
-
service
-
injector la thung chua cac service cua để khi component cần để khởi tạo instance nó sẽ kiếm trong injector . nếu injector ko có sẵn service đó nó sẽ tìm đến Provider
Routing
-
-
sử dụng route: thẻ a phải dùng routerLink thay cho href, Và dùng thẻ đóng <router-outlet> thay cho ng-view trong angular 1
import : RouterModule , Routes từ angular/router
-
-