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

Commit 0072e0c

Browse files
committed
adding md-select to types
1 parent b41c0dc commit 0072e0c

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

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 model[options.templateOptions.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)