This repository was archived by the owner on Jan 22, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +25
-2
lines changed Expand file tree Collapse file tree 4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -51,4 +51,6 @@ _rest of angular-material directive in near future_
51
51
- add md-radio-button and md-radio-group
52
52
- add md-select
53
53
- 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 ")
Original file line number Diff line number Diff line change
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
+ } ) ;
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change @@ -65,7 +65,11 @@ Package.onUse(function (api) {
65
65
66
66
// switch
67
67
'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'
69
73
70
74
] , client ) ;
71
75
You can’t perform that action at this time.
0 commit comments