Skip to content

Commit 5d89589

Browse files
committed
Import Range and TextInput directives from Ionic
1 parent 3f9558b commit 5d89589

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

app/pages/page2/page2.html

+3-7
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99

1010
<ion-content padding class="message bye-ionic">
1111
<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>
1915
</ion-content>

app/pages/page2/page2.ts

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
'use strict';
22

3-
import {Component} from '@angular/core';
3+
import { Component } from '@angular/core';
4+
import { Range, TextInput } from 'ionic-angular';
45

56
@Component({
67
templateUrl: 'build/pages/page2/page2.html',
8+
directives: [Range, TextInput],
79
})
10+
811
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
1212

13-
// private value: number;
14-
private value: string;
13+
// demonstrating #108
14+
private rangeValue: number;
15+
private inputValue: string;
16+
1517
constructor() {
1618

17-
// this.value = 33;
18-
this.value = 'some text';
19+
this.rangeValue = 33;
20+
this.inputValue = 'some text';
1921
}
2022
public onGainChange(arg: any): void {
2123
return;

0 commit comments

Comments
 (0)