Questions tagged [angular2-providers]

No instructions have been provided for implementing this tag at the moment!

Identify the locality and apply it to the root module of Angular 2 by utilizing a provider

I am working on a function that detects the current locale and I need to set it in the root App module of Angular 2 using a provider so that I can access it in all other components. I understand that I can achieve this by following the code below: { pr ...

Guide on passing LOCALE_ID from an observable within Angular 2

To localize the date pipe in Angular 2, you must supply the LOCALE_ID. I have developed a service called LocaleService that offers an locale$: Observable<string> which utilizes a BehaviorSubject<string>. I wish for this service to remain full ...