Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Commit

Permalink
fu apple #41
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevis committed Apr 3, 2018
1 parent eb3f423 commit 265fcca
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Queercon/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { HttpModule } from '@angular/http';

import { HomePage } from '../pages/home/home';
import { Qc15Page } from '../pages/qc15/qc15';
Expand Down Expand Up @@ -40,6 +41,7 @@ import { OneSignal } from '@ionic-native/onesignal';
],
imports: [
BrowserModule,
HttpModule,
IonicModule.forRoot(MyApp, {
statusbarPadding: false,
},
Expand Down
44 changes: 44 additions & 0 deletions Queercon/src/assets/json/events.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"events": [
{
"title": "Queercon Mixer",
"location": "Queercon Suite",
"summary": "Join us for something awesome and this will be fun. Except not for the staff, just for attendees. For the rest of us this is nonstop miserable work.",
"date": "04 AUG",
"hours": "16:00 - 20:00",
"icon1": "X",
"description": "This is for the details page",
"host": "QC"
},
{
"title": "Queercon Mixer",
"location": "Queercon Suite",
"summary": "Join us for something awesome and this will be fun. Except not for the staff, just for attendees. For the rest of us this is nonstop miserable work.",
"date": "04 AUG",
"hours": "16:00 - 20:00",
"icon1": "X",
"description": "This is for the details page",
"host": "QC"
},
{
"title": "Queercon Mixer",
"location": "Queercon Suite",
"summary": "Join us for something awesome and this will be fun. Except not for the staff, just for attendees. For the rest of us this is nonstop miserable work.",
"date": "04 AUG",
"hours": "16:00 - 20:00",
"icon1": "X",
"description": "This is for the details page",
"host": "QC"
},
{
"title": "Queercon Mixer",
"location": "Queercon Suite",
"summary": "Join us for something awesome and this will be fun. Except not for the staff, just for attendees. For the rest of us this is nonstop miserable work.",
"date": "04 AUG",
"hours": "16:00 - 20:00",
"icon1": "X",
"description": "This is for the details page",
"host": "QC"
}
]
}
12 changes: 10 additions & 2 deletions Queercon/src/pages/events/events.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
import { Http } from '@angular/http';
import 'rxjs/add/operator/map';


@Component({
Expand All @@ -20,11 +22,17 @@ export class EventsDetailsPage {
})
export class EventsPage {
/* Remove in staging *///private webWiew: any = window;
itemsOld = [];
items = [];
constructor(public nav: NavController) {
constructor(public nav: NavController, public http: Http) {
console.log('QC Events constructor loaded');

this.items = [
let localData = this.http.get('../assets/json/events.json').map(res => res.json().events);
localData.subscribe(data => {
this.items = data;
})

this.itemsOld = [
{
"title": "Queercon Mixer",
"location": "Queercon Suite",
Expand Down

0 comments on commit 265fcca

Please sign in to comment.