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

ng-change function's newValue/oldValue don't respect true-value/false-value attributes #10

Open
kanesee opened this issue Jun 18, 2018 · 0 comments

Comments

@kanesee
Copy link

kanesee commented Jun 18, 2018

Create a switcher with true-value, false-value, and ng-change

e.g.

      <switcher ng-model="switchertype"
                ng-change="onSwitcherChange(newValue, oldValue)"
                true-label="Public"
                true-value="'public'"
                false-label="Private"
                false-value="'private'"
                ></switcher>

Clicking on the toggle itself, sets the newValue and oldValue to "public" or "private", as expected.
But clicking on the labels, the newValue and oldValue become either true or false.

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

1 participant