Skip to content

Instantly share code, notes, and snippets.

import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
constructor(
var arr = [
{
"imgPath": "assets/icon/ming/2.jpg",
"valid": true,
"timeText": "",
"message": "兌換優惠0",
"state": "",
"name": "無骨雞腿排",
"dayLife": 0,
"hourLife": 0,
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
import { ScreenOrientation } from '@ionic-native/screen-orientation';
import * as moment from 'moment';
import { CouponArray } from '../../providers/couponArray';
import { Dandom_Fn } from '../../providers/random';