Open thewayiam opened 8 years ago
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.
have the same problem, if i declare default model state in $scope, trigger will always be in the "null" state
@migonium Did you ever find a fix to this?
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.