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

Commit 0e1ef72

Browse files
author
Kamil Kisiela
committed
Merge branch 'master' into develop
2 parents 3734511 + 2f8517c commit 0e1ef72

File tree

4 files changed

+25
-2
lines changed

4 files changed

+25
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,6 @@ _rest of angular-material directive in near future_
5151
- add md-radio-button and md-radio-group
5252
- add md-select
5353
- e2e tests
54-
- Requests (?). Post an issue.
54+
- Requests (?). Post an issue.
55+
56+
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/wieldo/angular-formly-templates-material/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

lib/client/types/select/select.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var {SetModule} = angular2now;
2+
3+
SetModule('formlyMaterial')
4+
.config((formlyConfigProvider, formlyMaterialProvider) => {
5+
6+
formlyConfigProvider.setType({
7+
name: 'select',
8+
templateUrl: formlyMaterialProvider.templateUrl('lib/client/types/select/select.ng.html'),
9+
wrapper: ['mdLabel', 'mdMessages', 'mdInputContainer']
10+
});
11+
12+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<md-select ng-model="model[options.key]">
2+
<md-option ng-repeat="item in to.options" value="{{ item.value }}">
3+
{{ item.name }}
4+
</md-option>
5+
</md-select>

package.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ Package.onUse(function (api) {
6565

6666
// switch
6767
'lib/client/types/switch/switch.js',
68-
'lib/client/types/switch/switch.ng.html'
68+
'lib/client/types/switch/switch.ng.html',
69+
70+
// select
71+
'lib/client/types/select/select.js',
72+
'lib/client/types/select/select.ng.html'
6973

7074
], client);
7175

0 commit comments

Comments
 (0)