Sunday, 15 April 2018

If you get this type of following errors :



Can't bind to 'ngModel' since it isn't a known property of 'input' ” 


You just import the FormsModule in your's module file and also add the reference in imports array so that you can not get this type of error again



import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';

import { AppComponent } from './app.component';
import { SimpleComponent } from './simple/simple.component';


@NgModule({
declarations: [
AppComponent,
SimpleComponent
],
imports: [
BrowserModule,
FormsModule
],
providers: [],
bootstrap: [AppComponent]
})



AdSense

The Ultimate Guide to Interceptors: Understanding Their Power and Functionality

  The Ultimate Guide to Interceptors: Understanding Their Power and Functionality An interceptor is a service that can intercept HTTP reques...

Follow