-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ngModel' since it isn't a known property of 'ui-switch' #227
Comments
I downgrade this module into 1.4.4 because of MetaData version mismatch error with version 1.4.9. Could you provide any good solution with me, please? |
This may have been what I was talking about in #189 |
When downgrading it into 1.4.4, the two-way binding is not working. |
Yes and that's why I mentioned #189. I will look into the ngModel issue when I have a chance. For now, use the change event and update your variable manually. |
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 |
|
@vinayadepu that import is not correct and those instructions are in the README |
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
import { UiSwitchModule } from 'ngx-toggle-switch';
@NgModule({
imports: [UiSwitchModule, ...],
exports: [UiSwitchModule, ...]
})
export class SharedModule{} |
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.
The text was updated successfully, but these errors were encountered: