From 7e3eb23345a197552ac5ed8483c69d8eb689008a Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 18 Feb 2016 10:25:13 -0600 Subject: [PATCH] test(select): ngFor ion-option w/ array of numbers Related: #5495 --- ionic/components/select/test/single-value/index.ts | 8 +++++++- ionic/components/select/test/single-value/main.html | 12 +----------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/ionic/components/select/test/single-value/index.ts b/ionic/components/select/test/single-value/index.ts index 0c1bd8365b..8d15e7b3a8 100644 --- a/ionic/components/select/test/single-value/index.ts +++ b/ionic/components/select/test/single-value/index.ts @@ -1,8 +1,11 @@ +import {NgFor} from 'angular2/common'; + import {App, Page} from '../../../../../ionic/ionic'; @Page({ - templateUrl: 'main.html' + templateUrl: 'main.html', + directives: [NgFor] }) class E2EPage { musicAlertOpts; @@ -12,6 +15,7 @@ class E2EPage { music: string; month: string; year: string; + years: Array; constructor() { this.gaming = ''; @@ -20,6 +24,8 @@ class E2EPage { this.month = '12'; this.year = '1994'; + this.years = [1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999]; + this.musicAlertOpts = { title: '1994 Music', subTitle: 'Select your favorite' diff --git a/ionic/components/select/test/single-value/main.html b/ionic/components/select/test/single-value/main.html index 2082716d49..d3ad57f11f 100644 --- a/ionic/components/select/test/single-value/main.html +++ b/ionic/components/select/test/single-value/main.html @@ -67,17 +67,7 @@ December - 1989 - 1990 - 1991 - 1992 - 1993 - 1994 - 1995 - 1996 - 1997 - 1998 - 1999 + {{yr}}