0

I get an error when try to start application:

Uncaught Error: Template parse errors:
Can't bind to 'ngModel' since it isn't a known property of 'md-select'.
1. If 'md-select' is an Angular component and it has 'ngModel' input, then verify that it is part of this module.
2. If 'md-select' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("

I am not sure that I understand problem. But I have import:

import { BrowserModule } from '@angular/platform-browser';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
2
  • can you also show us your HTML please? Commented Aug 7, 2017 at 13:29
  • Do you have sub-modules? If so, did you import FormsModule there? Commented Aug 7, 2017 at 13:30

1 Answer 1

2

FormsModule is missing in your app.

Do the following in your app.module.ts:

import { FormsModule } from '@angular/forms';
// ...
@NgModule({
  imports: [
    // Add FormsModule in your imports[]  
    FormsModule,
    // ...    
  ],
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.