See more
{ provide: LOCALE_ID, deps: [SessionService], useFactory: (sessionService) => sessionService.getLocale()}
A ControlValueAccessor acts as a bridge between the Angular forms API and a native element in the DOM.
ControlValueAccessor
A higher order observable is just a fancy name for an observable that emits observable. Let’s change the example a little bit so you can see what I’m talking about.