-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Datepicker No value accessor for '' error still there after updating to 1.0.20 ... #722
Comments
@rernens Did you provide the new forms and disabled the deprecated once? |
@rernens please add this 2 lines to application bootstrap |
I am effectively using the new form and have properly disabled the old one as per the @valorkin comments. |
@rernens so it works now? |
@valorkin I was already using the new form since RC 3. Had already applied your 2 lines before reporting the problem. |
Can you create a plunkr? |
I am experiencing this problem as well but for the Typeahead component. Should I open another issue? |
Not really, please check steps I was mentioning earlier |
I followed those steps and the outcome was the same. I did a little more digging to try to figure out what exactly it was and it appears that it has to do with Ionic and the |
Ok in my case it appears to be this bug ionic-team/ionic-framework#7217. I removed the typeahead directives with the exception of ngModel and the issue remained. Any chance you are using Ionic 2 as well @rernens? |
@valorkin @adamduren @rernens I fixed this for the typeaheads. If I have enough time, I will apply these changes to every directive that uses ngModel. |
@adamduren No I am not using Ionic 2. I am using the advanced-seed with nativescript support but the problem appears in the web part. Not yet tested on nativescript. |
@valorkin Do you still nee a plunkr, if yes I will create one. |
@rernens We don't need a plunkr, I now exactly what the problem is. |
@Dinistro OK, looking forward for your solution. Thanks |
@Dinistro I finally found where the issue was, not a bug in datepicker : import {disableDeprecatedForms, provideForms} from '@angular/forms'; not import {disableDeprecatedForms, provideForms} from '@angular/forms/index'; |
@rernens there is another issue, if you use the directives without ngModel. |
ng2-bootstrap need to be updated to 1.0.22 for @angular/forms compatibility |
@Dinistro OK thanks for the info. |
Happens for me with radio button. Latest everything, importing from |
@msklvsk > ng2-bootstrap need to be updated to 1.0.22 for @angular/forms compatibility |
After upgrading to Angular 2.0.0 RC 4 and ng2-bootstrap 1.0.20, despite issue #678 being merged in version, issue #680 is still there.
I can't get the sample from your web site to work and always get the « No value accessor for '' » exception
platform-browser.umd.js:1900 Error: No value accessor for ''
at new BaseException (exceptions.ts:21)
at _throwError (shared.ts:68)
at Object.setUpControl (shared.ts:39)
at NgModel._setUpStandalone (ng_model.ts:83)
at NgModel._setUpControl (ng_model.ts:73)
at NgModel.ngOnChanges (ng_model.ts:43)
at DebugAppView._View_TeetimesComponent0.detectChangesInternal (TeetimesComponent.template.js:260)
at DebugAppView.AppView.detectChanges (core.umd.js:12143)
at DebugAppView.detectChanges (core.umd.js:12247)
at DebugAppView.AppView.detectViewChildrenChanges (core.umd.js:12169)
The text was updated successfully, but these errors were encountered: