ngModel' since it isn't a known property of 'ui-switch'
See original GitHub issuengModel
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;
Issue Analytics
- State:
- Created 6 years ago
- Comments:8
Top Results From Across the Web
Can't bind to 'ngModel' since it isn't a known property of 'nz ...
While it doesn't say it in the documentation, you need to have Angular's FormsModule imported in order for the ngModel binding to work....
Read more >Can't bind to 'ngModel' since it isn't a known property of 'input'
To fix Can't bind to 'ngModel' since it isn't a known property of 'input' error in Angular we have to import FormsModule in...
Read more >ion-input ngmodel not working, ngmodel ionic 4, can t bind to ...
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,...
Read more >ngx-ui-switch - npm
ngx-ui-switch. TypeScript icon, indicating that this package has built-in type declarations. 14.0.3 • Public • Published 4 months ago.
Read more >Ng : Ui-Switch Is Not A Known Element In Angular5 - ADocLib
ngx-ui-switch repo issues. be resolved to an NgModule class. ... Can't bind to 'ngModel' since it isn't a known property of 'input'. hide...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can’t reproduce on 1.5.0. The demo works fine in the 1.x-stable branch with Angular 4.
Have you imported the module
UiSwitchModule
?Sorry for necro’ing this issue but I want to point out for people coming by here that one can also import it in the
shared.module.ts
to have it available for all components.