onaluf / fate

Flexible Angular Text Editor
MIT License
37 stars 14 forks source link

Can't bind to 'ngModel' since it isn't a known property of 'fate-input'. #44

Closed Tristan-ow closed 6 years ago

Tristan-ow commented 6 years ago

In Angular 5, I cannot use the editor. I implemented it like in the description

<fate-ui ></fate-ui> <fate-input [(ngModel)]="data.content"></fate-input> and imported the Module.

But I alwys get the the error

Can't bind to 'ngModel' since it isn't a known property of 'fate-input'.

leandro-hermes commented 6 years ago

@Tristan-ow You need to import the FormsModule from @angular/forms too.

@NgModule({
  // ...
  imports: [
    // ...
    FormsModule,
    FateModule
  ]
  // ...
}) // ...
onaluf commented 6 years ago

Thanks @LeandroHermes, that should fix @Tristan-ow problem indeed. I'll add that info to the doc and close the issue once it's done...

onaluf commented 6 years ago

:tada: This issue has been resolved in version 1.7.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: