What is the purpose of using forRoot in NgModule? Is it same as the providers in AngularJS 1.x? How does it play the significant role in lazy loading? TIA.
I have the following typeahead that returns data <input [(ngModel)]="model" [class.is-invalid]="searchFailed" [inputFormatter]="inputFormatBandListValue"
I know input[date] require date type from JSON, then I format ngModel value with new Date(json.date) , it's works 2015-11-15 become Mon Nov 15 2015 02:00:00 GMT