Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Why can't a pipe be used for the conversion for the ngModel assignment above? I tried it and it results in errors. I had previously looked at my own post above but couldn't say how I would apply it to angular. I wll take a look at the ControlValueAccessor with writeValue(v) Commented Feb 14, 2016 at 22:25
  • I found the use of ControlValueAccessor at http://plnkr.co/edit/aggee6An1iHfwsqGoE3q?p=preview, but would require a port to Dart as some Classes seems different. Commented Feb 14, 2016 at 22:37
  • The presence of #yearsCtrl = "ngForm" or [ngFormControl] = "ageForm.controls['yearsCtrl']" ALWAYS generate the error. Is this a bug or is it that angular2 does not support the number type? Commented Feb 19, 2016 at 2:12