ngModel: No value accessor for ''

后端 未结 10 2259
暖寄归人
暖寄归人 2020-12-09 15:08

I\'m creating a custom element in Angular 2.0 (), and when I include the ngModel attribute on the component, I\'m immediately hit with the foll

10条回答
  •  青春惊慌失措
    2020-12-09 15:55

    I had a similar issue when I was creating a release task in gulp. I tracked it down to an error with the minified versions of the Angular2 code which is what you are using in your plunker. This Angular2 Issue on github is where I found my answer and here is Igor Minar's response to the Issue (Igor is a top contributor to the Angular2 project).

    TL;DR; Use the .dev Angular2 library files until the Angular team fixes this issue.

提交回复
热议问题