Skip to content

ngModel' since it isn't a known property of 'ui-switch' #227

Closed
@javascriptDC

Description

@javascriptDC

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'.

  1. If 'ui-switch' is an Angular component and it has 'ngModel' input, then verify that it is part of this module.

  2. If 'ui-switch' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

  3. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions