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

Bind with another input element, another input element couldn't correct affect nz-toggle #33

Open
thewayiam opened this issue Jun 16, 2016 · 3 comments

Comments

@thewayiam
Copy link

Is there any chance to make another input element bind with nz-toggle? or is there any function to set nz-toggle to true/false/null from javascript?
I've try to bind nz-toggle with another input element as below, when toggle with nz-toggle, the correct value will display on input element, but when type in input element, nz-toggle will always move to middle.

<input type="text" ng-model="myValue1">
<nz-toggle tri-toggle ng-model="myValue1"></nz-toggle>
@ckr
Copy link
Collaborator

ckr commented Jun 16, 2016

Hi,

I am not quite sure what you ate trying to achieve here. But changing the value of the model will change the toggle of the element.

Hope this helps.

@migonium
Copy link

have the same problem, if i declare default model state in $scope, trigger will always be in the "null" state

@0xhjohnson
Copy link

@migonium Did you ever find a fix to this?

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

4 participants