Commit 5d89589 1 parent 3f9558b commit 5d89589 Copy full SHA for 5d89589
File tree 2 files changed +13
-15
lines changed
2 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 9
9
10
10
< ion-content padding class ="message bye-ionic ">
11
11
< h2 > Bye!</ h2 >
12
- <!-- NOTE: the clicker issue 108 error can be reproduced either with
13
- an <ion-range> or with an <ion-input> element with an
14
- [(ngModel)]. uncomment either one of those lines and uncomment
15
- the corresponding lines in page2.ts that change the type of
16
- 'value' -->
17
- <!--ion-range [(ngModel)]="value"></ion-range-->
18
- < ion-input [(ngModel)] ="value " type ="text "> </ ion-input >
12
+ <!-- demonstrating #108 -->
13
+ < ion-range [(ngModel)] ="rangeValue "> </ ion-range >
14
+ < ion-input [(ngModel)] ="inputValue " type ="text "> </ ion-input >
19
15
</ ion-content >
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- import { Component } from '@angular/core' ;
3
+ import { Component } from '@angular/core' ;
4
+ import { Range , TextInput } from 'ionic-angular' ;
4
5
5
6
@Component ( {
6
7
templateUrl : 'build/pages/page2/page2.html' ,
8
+ directives : [ Range , TextInput ] ,
7
9
} )
10
+
8
11
export class Page2 {
9
- // NOTE: reproducing clicker issue 108: 'value' should be a string
10
- // type if you uncommented the <ion-input> line in page2.html, or
11
- // if you uncommented <ion-range>, then 'value' should be an int
12
12
13
- // private value: number;
14
- private value : string ;
13
+ // demonstrating #108
14
+ private rangeValue : number ;
15
+ private inputValue : string ;
16
+
15
17
constructor ( ) {
16
18
17
- // this.value = 33;
18
- this . value = 'some text' ;
19
+ this . rangeValue = 33 ;
20
+ this . inputValue = 'some text' ;
19
21
}
20
22
public onGainChange ( arg : any ) : void {
21
23
return ;
You can’t perform that action at this time.
0 commit comments