This repository was archived by the owner on Jan 22, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-38
lines changed
demo/client/components/demo-view-source Expand file tree Collapse file tree 2 files changed +8
-38
lines changed Original file line number Diff line number Diff line change @@ -2,37 +2,7 @@ <h3 class="md-headline purple-headline">Scope</h3>
2
2
< md-tabs md-dynamic-height md-border-bottom >
3
3
< md-tab label ="{{::item.label}} " ng-repeat ="item in vm.sources ">
4
4
< md-content class ="md-padding ">
5
- < div hljs hljs-language ="json " hljs-source ="item.source | json "> </ div >
5
+ < div hljs hljs-language ="json " hljs-source ="vm[ item.key] | json "> </ div >
6
6
</ md-content >
7
7
</ md-tab >
8
- <!-- fields definition -->
9
- <!--md-tab label="Fields definition">
10
- <md-content class="md-padding">
11
- <div hljs hljs-language="json" hljs-source="vm.fieldsCopy | json"></div>
12
- </md-content>
13
- </md-tab-->
14
- <!-- fields -->
15
- <!--md-tab label="Fields">
16
- <md-content class="md-padding">
17
- <div hljs hljs-language="json" hljs-source="vm.fields | json"></div>
18
- </md-content>
19
- </md-tab-->
20
- <!-- model -->
21
- <!--md-tab label="Model">
22
- <md-content class="md-padding">
23
- <div hljs hljs-language="json" hljs-source="vm.model | json"></div>
24
- </md-content>
25
- </md-tab-->
26
- <!-- form -->
27
- <!--md-tab label="Form">
28
- <md-content class="md-padding">
29
- <div hljs hljs-language="json" hljs-source="vm.form | json"></div>
30
- </md-content>
31
- </md-tab-->
32
- <!-- options -->
33
- <!--md-tab label="Options">
34
- <md-content class="md-padding">
35
- <div hljs hljs-language="json" hljs-source="vm.options | json"></div>
36
- </md-content>
37
- </md-tab-->
38
8
</ md-tabs >
Original file line number Diff line number Diff line change @@ -18,17 +18,17 @@ class DemoViewSourceComponent {
18
18
// make copy of fields
19
19
this . fieldsInits = angular . copy ( this . fields ) ;
20
20
21
- this . add ( this . fieldsInits , 'Initial fields' ) ;
22
- this . add ( this . fields , 'Fields' ) ;
23
- this . add ( this . model , 'Model' ) ;
24
- this . add ( this . form , 'Form' ) ;
25
- this . add ( this . options , 'Options' ) ;
21
+ this . add ( ' fieldsInits' , 'Initial fields' ) ;
22
+ this . add ( ' fields' , 'Fields' ) ;
23
+ this . add ( ' model' , 'Model' ) ;
24
+ this . add ( ' form' , 'Form' ) ;
25
+ this . add ( ' options' , 'Options' ) ;
26
26
}
27
27
28
- add ( source , label ) {
28
+ add ( key , label ) {
29
29
this . sources . push ( {
30
30
label,
31
- source
31
+ key
32
32
} ) ;
33
33
}
34
34
}
You can’t perform that action at this time.
0 commit comments