-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
(slideend) is not working as expected with [(ngModel)] [material version is alpha 10] #1802
Comments
The |
yes.. i have used (change) event too. but i am facing same problem |
Here is my updated code. onSlideEnd($event){ again.. the value for sliderVal shows previous value. (not the current value of slider) |
Are you importing the FormsModule? I was able to get this working with You can see a working plnkr here |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
i did two way binding md-slider with class attribute 'sliderVal'. as below code.
<md-slider (slideend)="onSlideEnd();" [min]="0" [max]="100" [(ngModel)]="sliderVal">
//class members
sliderVal: number = 10;
onSlideEnd(){
console.log("slider value", this.sliderVal);
}
but the problem is when onSlideEnd() is called. its shows previous slider value in console.
The text was updated successfully, but these errors were encountered: