File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,13 @@ var lifeCycle: LifeCycle = null;
22
22
<StackLayout orientation='vertical'>
23
23
<Label text='Name' fontSize='32' verticalAlignment='center' padding='20'></Label>
24
24
<TextField #name text='John' fontSize='32' padding='20'></TextField>
25
- <Button [text]='buttonText' (tap)='onSave($event, name.text)'></Button>
25
+ <Button [text]='buttonText' (tap)='onSave($event, name.text, $el )'></Button>
26
26
<Button text='Toggle details' (tap)='onToggleDetails()'></Button>
27
27
<TextView *ng-if='showDetails' [text]='detailsText'></TextView>
28
28
<StackLayout #more *ng-if='showDetails' orientation='vertical'>
29
29
<TextField *ng-for='#detailLine of detailLines' [text]='detailLine'></TextField>
30
30
</StackLayout>
31
+ <Label text='..............' fontSize='32' verticalAlignment='center' padding='20'></Label>
31
32
</StackLayout>
32
33
` ,
33
34
} )
@@ -40,7 +41,7 @@ class MainPage {
40
41
41
42
constructor ( ) {
42
43
this . buttonText = 'Save...'
43
- this . showDetails = false ;
44
+ this . showDetails = true ;
44
45
this . detailsText = 'plain ng-if directive \ndetail 1-2-3...' ;
45
46
this . moreDetailsText = 'More details:' ;
46
47
@@ -51,9 +52,10 @@ class MainPage {
51
52
] ;
52
53
}
53
54
54
- onSave ( $event , name ) {
55
+ onSave ( $event , name , $el ) {
55
56
console . log ( 'onSave event ' + $event + ' name ' + name ) ;
56
- alert ( name ) ;
57
+ //alert(name);
58
+ $el . printTree ( ) ;
57
59
}
58
60
59
61
onToggleDetails ( ) {
You can’t perform that action at this time.
0 commit comments