Created
May 10, 2018 17:12
-
-
Save eladcandroid/b22a9046e8c0924bfe331d204fa35aab to your computer and use it in GitHub Desktop.
Minyan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import { AddNewPage } from './../add-new/add-new'; | |
import { Address } from './../data/address.interface'; | |
import { Component, OnInit } from '@angular/core'; | |
import { NavController,AlertController } from 'ionic-angular'; | |
import { SynagogeDetailsPage } from '../synagoge-details/synagoge-details'; | |
import { Time } from '../data/time.interface'; | |
import places from '../data/places'; | |
import { Place } from '../data/place.interface'; | |
@Component({ | |
selector: 'page-home', | |
templateUrl: 'home.html' | |
}) | |
export class HomePage implements OnInit{ | |
placeCollection: Place[]; | |
constructor(public navCtrl: NavController, public alertCtrl: AlertController) { | |
} | |
ngOnInit (){ | |
this.placeCollection = places; | |
} | |
onLoadPlace(name: string) { | |
this.navCtrl.push(SynagogeDetailsPage, {username: name}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment