Angular Components In Depth 16 - Creating and using service

preview_player
Показать описание

Create a service to move out code from components into something that’s reusable across multiple components.

This course is a deep dive into components in Angular. Learn about the various features of Angular components and powerful ways of customizing your component's behaviors - Event handling, view children, change detection, content projection and more!
Рекомендации по теме
Комментарии
Автор

You don't need to add your services as a provider anymore. In angular 6, the used the providedIn: 'root' which already inject it as a root provider so you can use anywhere in your application. It's also possible to specify that a service should be provided in a particular @NgModule.

sunilanthony
Автор

Truth be told. You are good. YOu understand stuff. I cherish you

kasozivincent
Автор

putting semicoln all the time, java habit, i am like that 2.

TheGuroguro