Skip to content

(slideend) is not working as expected with [(ngModel)] [material version is alpha 10] #1802

Closed
@amanullahnxb

Description

@amanullahnxb

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions