Last 12 weeks · 0 commits
1 of 6 standards met
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.
Repository: tannerlinsley/nz-toggle. Description: Dual and triple-state toggles for AngularJS Stars: 41, Forks: 28. Primary language: JavaScript. Languages: JavaScript (62.9%), CSS (26.9%), HTML (10.1%). Homepage: http://codepen.io/anon/pen/yNjyME Latest release: 2.1.0 (10y ago). Open PRs: 4, open issues: 11. Last activity: 6y ago. Community health: 28%. Top contributors: tannerlinsley, ckr, moravcik, LiamK, gitter-badger.
Hi, We added a dependency to angularjs which solves a runtime problem when we build using the prod profile defined in our gulp file. By adding this dependency gulp (or some of the tools executed by gulp) knows nz-toggle depends on angularjs and gulp knows how to create single js file with all dependencies.
I've had some trouble when using nz-toggle with md-virtual-repeater. As ngModel was watched for changes and then updated. When Virtual repeater when you are scrolling down on a table, for example, each element was acting like if it has changed. Solved by calling the update function only in the function, instead of calling it on the watch.