-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Solution] Ionic RC0, forms control and validation #8541
Comments
Hello, thanks for opening an issue with us! After reviewing I am going to close this issue as it seems to be an Angular bug and not an Ionic bug. |
It works on browser testing, but it doesn't work when build or emulate ----------------------------------This is my error---------------------------------------------------- Error at C:/Users/babyjazz/chlom/.tmp/pages/contact/contact.ts:2:10: Duplicate identifier 'Component'. [19:32:50] ngc: Compilation failed [19:32:50] ngc failed: NGC encountered an error [19:32:50] Error: NGC encountered an error Error running ionic app script "build": Error: NGC encountered an error npm npm ERR! Please include the following file with any support request: Caught exception: Mind letting us know? https://github.com/driftyco/ionic-cli/issues |
Hey @babyjazz, I removed d |
Short description of the problem:
So I was following this great tutorial (http://blog.thoughtram.io/angular/2016/06/22/model-driven-forms-in-angular-2.html) from Pascal on how to build model driven forms using FormBuilder in latest RC0 as I was using it in Beta11, but soon I was stopped with this error
I'm using (I think I'm) all by the book, and this is in short what I have in
app.module.ts
login.ts
login.html
SOLUTION
What behavior are you expecting?
Use FormBuilder validations with custom form elements from Ionic
Steps to reproduce:
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
http://stackoverflow.com/questions/38958347/angular2-rc-5-custom-input-no-value-accessor-for-form-control-with-unspecified
angular/angular#9230
Which Ionic Version? 1.x or 2.x
Ionic 2.x
Run
ionic info
from terminal/cmd prompt: (paste output below)Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.11.1
Xcode version: Xcode 7.3.1 Build version 7D1014
The text was updated successfully, but these errors were encountered: