I am trying to enable multi select in my md-select. I have hardcoded multiple
to true but md-select isn't showing checkbox
besides the value in the drop down list.
I am using AngularJS 1.4.8 and AngularMaterial 1.0.0.
Code:
<div style="background: #f7f7f7" ng-controller="CircleTimeActivityPageController">
<md-input-container flex="30">
<md-select multiple="true" placeholder="Observations" ng-model="myData">
<md-option ng-value="selectedObservation" ng-repeat="selectedObservation in observations">
{{ selectedObservation }}</md-option>
</md-select>
</md-input-container>
</div>
mainApp.controller('CircleTimeActivityPageController', function($scope, $http, $mdToast, $log) {
$scope.observations = [1.3, 1.2, 1.1];
});
Please excuse my ignorance in AngularJS and AngularMaterial.
EDIT:
CODEPEN Example: https://codepen.io/wingoku/pen/ZLYxNY
Best Regards
I think it's just a version issue. If you upgrade
angular-material
version to the latest 1.1.1, your problem will be fixed, as you can see in this working plunker.Hope it helps