Angular NgModel Does Not Work At All: Object(...) is not a function
Even just having ngModel
on an input was crushing my runtime. Did I remember to import
the FormsModule
? Yes. Having #form="ngForm"
on my <form>
wasn't a problem. Very frustrating -- wasted so much time.
Here's the Error
ERROR TypeError: Object(...) is not a function
at _isAndroid (VM19326 taskpane.js:62091)
at new DefaultValueAccessor (VM19326 taskpane.js:62144)
at createClass (VM19326 taskpane.js:55008)
at createDirectiveInstance (VM19326 taskpane.js:54849)
at createViewNodes (VM19326 taskpane.js:56307)
at callViewAction (VM19326 taskpane.js:56741)
at execComponentViewsAction (VM19326 taskpane.js:56650)
at createViewNodes (VM19326 taskpane.js:56335)
at createEmbeddedView (VM19326 taskpane.js:56184)
at callWithDebugContext (VM19326 taskpane.js:57621)