Attempting to use the md-selected-html expression that can be seen on this page. :
https://material.angularjs.org/latest/api/directive/mdSelect
There are no examples of this usage on the interwebs that I have been able to find. I have been able to find examples of the md-selected-text expression on the web working without issue. The first codepen below is an example of this working and the javascript function firing.
https://codepen.io/anon/pen/ONEQmE?editors=1010
<md-select ng-model="selectedItem" md-selected-text="getSelectedText()">
<md-optgroup label="items">
<md-option ng-value="item" ng-repeat="item in items">Item {{item}}</md-option>
</md-optgroup>
</md-select>
The below is my version with the md-selected-html expression present and not firing a javascript function. Any ideas on why this is not working?
https://codepen.io/billBlankenship/pen/bWJvvo?editors=1010
<md-select ng-model="selectedItem" md-selected-html="getSelectedText()">
<md-optgroup label="items">
<md-option ng-value="item" ng-repeat="item in items">Item {{item}}</md-option>
</md-optgroup>
</md-select>