yuyang041060120 / ng2-validation

angular2 validation
https://yuyang041060120.github.io/ng2-validation/index.html
MIT License
612 stars 213 forks source link

How to install ng2-validation in Ionic 3 App #108

Open Neotrixsx opened 7 years ago

Neotrixsx commented 7 years ago

I try to add ng2-validation in Ionic 3 App. It successfully installs using npm install ng2-validation --save But after that i get an error Uncaught Error: Unexpected module 'CustomFormsModule' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@Component annotation.

Please help me resolve that problem

tomavic commented 7 years ago

I got same problem here

tomavic commented 7 years ago

Someone mention admins!!

adyba commented 7 years ago

I have just (literally) installed ng2-validation into (fresh) Ionic3 and everything works. But I'm using it via FormBuilder. Mentioned error seems to be result of using ng2-validation as directive. Have have you injected it into urAwesomePage.module.ts ? It could be a lazyloading issue.

Maneabhi commented 6 years ago

I also got same error. You need add CustomFormsModule to imports array after FormsModule