#angular
Read more stories on Hashnode
Articles with this tag
Các câu hỏi với Router 1. Sự khác nhau giữa forRoot và forChild forRoot: Khi gọi forRoot thì Angular sẽ tạo 1 instance của Router để hoạt động trong...
Provider có tác dụng báo cho injector biết làm sao để tạo injector. Có 4 cách tạo provider useClass, useValue, useFactory, useExisting. vd: providers...
1. Khái quát Angular có 2 cây injector: module injector và element injector. Module injector dùng cho root module và lazy load module, element...
Dependency: Đối tượng mà được inject vào constructor của service, component, directive, pipe ... @Injectable: Decorator thông báo cho angular biết nó...
Bài này sẽ bàn về các phương pháp giúp tăng hiệu năng trong ứng dụng angular 1. Lazy load Một ứng dụng angular có nhiều tính năng và thường thì ta sẽ...
Khi nào App chạy change detection ? DOM events (mouse, key, …) Requests api Timers (setTimers(), setInterval()) gọi method detectChanges() bằng đối...