Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit a50a2cb

Browse files
author
Kamil Kisiela
committed
Add valueProp and labelProp to md-select
1 parent d1e4167 commit a50a2cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [Unreleased]
66
### Added
7-
- Support for md-select
7+
- Support for md-select with valueProp and labelProp
88
- Support for md-radio with valueProp and labelProp options
99

1010
## [0.0.4] - 2015-11-13
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<md-select ng-model="model[options.key]">
2-
<md-option ng-repeat="item in to.options" value="{{ item.value }}">
3-
{{ item.name }}
2+
<md-option ng-repeat="option in to.options" ng-value="option[to.valueProp || 'value']">
3+
{{ option[to.labelProp || 'name'] }}
44
</md-option>
55
</md-select>

0 commit comments

Comments
 (0)