Angular 8 Pertanyaan dan Jawaban Wawancara
Question: How does dependency injection work in Angular?Answer: Dependency injection in Angular works by providing dependencies (services or values) to a component or other Angular construct through their constructor. Angular's DI system takes care of injecting the required dependencies when creating an instance of the component or service.Example:
|
Simpan untuk Revisi
Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.
Masuk untuk menyimpan bookmark, pertanyaan sulit, dan set revisi.
Apakah ini membantu? Ya Tidak
Most helpful rated by users: