Angular Dependency Injection & Providers NgModule.providers vs Component.providers vs Component.viewProviders from ng vs Watch Video
Preview(s): Play Video: (Note: The default playback of the video is HD VERSION. If your browser is buffering the video slowly, please play the REGULAR MP4 VERSION or Open The Video below for better experience. Thank you!)
Description: Get the book for free at http://angular.codecraft.tvnnWe can configure the DI framework in Angular in three main ways.nnWe can configure a provider on the NgModule, on a component or directives providers property and on a components viewProviders property.nnDeciding where to configure your provider and understanding the difference is the key to understanding how to architect an Angular application.nnIf we want an instance of a dependency to be shared globally and share state across the applicati