You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the use-case or motivation for changing an existing behavior?
I'm currently using breeze client, that allows to update property from ngModel only.
In this case one way to update property to listen if autocomplete item selected
Which versions of Angular, Material, OS, browsers are affected?
Activity
djleonskennedy commentedon Mar 13, 2017
md-option has onClose, it can be used as workaround
chouclee commentedon Mar 13, 2017
md-optionhasonSelect, is this what you want?djleonskennedy commentedon Mar 14, 2017
@chouclee Yes, i've used
md-option's onClose, it'd be nice to see it it in examples somewhere!willshowell commentedon Mar 14, 2017
As a note, the api changes from
onSelecttoonSelectionChangein #2722 to account for select/deselect of multiple options.gtzinos commentedon May 17, 2017
Guys onSelect method not exists.
rupinr commentedon Jun 23, 2017
I used onSelectionChange instead of onSelect.
<md-option (onSelectionChange)="test($item)" *ngFor="let option of filteredTrain | async"
[value]="option">
{{ option.viewValue }}
test(item){
console.log(item);
}.
But I only see undefined in console. Is there anything wrong here?
gauravbh1 commentedon Jun 25, 2017
@rupinr
Instead of (onSelectionChange)="test($item)" use (onSelectionChange)="test(option)"
angular-automatic-lock-bot commentedon Sep 5, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.