Closed
Description
ngModel
is not working properly.
Issue:
compiler.es5.js:1694 Uncaught Error: Template parse errors:
Can't bind to 'ngModel' since it isn't a known property of 'ui-switch'.
-
If 'ui-switch' is an Angular component and it has 'ngModel' input, then verify that it is part of this module.
-
If 'ui-switch' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
-
To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
<ui-switch [ERROR ->][(ngModel)]="enable"></ui-switch> </div>
<ui-switch [(ngModel)]="enable"></ui-switch>
enable = true;
Metadata
Metadata
Assignees
Labels
No labels