MdCheckBox - error when [(ngModel)] on md-checkbox inside ngFor
See original GitHub issue<tr *ngFor="let alarm of alarms">
<md-checkbox [(ngModel)]="alarm.isActive"></md-checkbox>
</tr>
throws an error in the console:
“Uncaught (in promise): TypeError: Cannot set property ‘stack’ of undefined TypeError: Cannot set property ‘stack’ of undefined at SyntaxError.set [as stack] (eval at <anonymous> (file:///C:/projects/school/dist/vendor.js:17:2), <anonymous>:1628:63) at assignAll (eval at <anonymous> (file:///C:/projects/school/dist/polyfills.js:1744:2), <anonymous>:704:29) at SyntaxError.ZoneAwareError (eval at <anonymous> (file:///C:/projects/school/dist/polyfills.js:1744:2), <anonymous>:775:16) at SyntaxError.BaseError [as constructor] (eval at <anonymous> (file:///C:/projects/school/dist/vendor.js:17:2), <anonymous>:1590:18) at new SyntaxError (eval at <anonymous> (file:///C:/projects/school/dist/vendor.js:17:2), <anonymous>:1793:18) at TemplateParser.parse (eval at <anonymous> (file:///C:/projects/school/dist/vendor.js:17:2), <anonymous>:11210:21) at JitCompiler._compileTemplate (eval at <anonymous> (file:///C:/projects/school/dist/vendor.js:17:2), <anonymous>:27480:70) at eval (eval at <anonymous> (file:///C:/projects/school/dist/vendor.js:17:2), <anonymous>:27363:64) at Set.forEach (native) at JitCompiler._compileComponents (eval at <anonymous> (file:///C:/projects/school/dist/vendor.js:17:2), <anonymous>:27363:21) at createResult (eval at <anonymous> (file:///C:/projects/school/dist/vendor.js:17:2), <anonymous>:27246:21) at ZoneDelegate.invoke (eval at <anonymous> (file:///C:/projects/school/dist/polyfills.js:1744:2), <anonymous>:242:26) at Zone.run (eval at <anonymous> (file:///C:/projects/school/dist/polyfills.js:1744:2), <anonymous>:113:43) at eval (eval at <anonymous> (file:///C:/projects/school/dist/polyfills.js:1744:2), <anonymous>:535:57) at ZoneDelegate.invokeTask (eval at <anonymous> (file:///C:/projects/school/dist/polyfills.js:1744:2), <anonymous>:275:35) at Zone.runTask (eval at <anonymous> (file:///C:/projects/school/dist/polyfills.js:1744:2), <anonymous>:151:47) at drainMicroTaskQueue (eval at <anonymous> (file:///C:/projects/school/dist/polyfills.js:1744:2), <anonymous>:433:35)”
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
my mistake. forgot FormsModule …
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.