Skip to content
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

Switch ngModel support 0 and 1 #3152

Closed
DreamPWJ opened this issue Mar 25, 2019 · 2 comments
Closed

Switch ngModel support 0 and 1 #3152

DreamPWJ opened this issue Mar 25, 2019 · 2 comments

Comments

@DreamPWJ
Copy link
Contributor

What problem does this feature solve?

The Boolean types stored in most back-end databases may be 0 and 1 values, while the ngmodel retrieves true and false. Although the conversion is simple, it is still a little tedious to convert each time. We hope that the ngmodel can directly retrieve 0 and 1 values

What does the proposed API look like?

[ngModel] number|boolean , add nzValueNumber="true" api

@vthinkxie
Copy link
Member

won't support

@DreamPWJ
Copy link
Contributor Author

@vthinkxie 对不住 说错了 是Switch组件 这个功能还是很实用的 考虑一下

@DreamPWJ DreamPWJ changed the title Checkbox ngModel support 0 and 1 Switch ngModel support 0 and 1 Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants