From ec5b1e4b961970265679d7b8a5f861506a03d17e Mon Sep 17 00:00:00 2001 From: Kamil Kisiela Date: Wed, 21 Sep 2016 17:05:17 +0200 Subject: [PATCH] Step 3.2: Load parties data into app --- client/imports/app/app.component.ts | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/client/imports/app/app.component.ts b/client/imports/app/app.component.ts index 91e1a0626..834d1eabb 100644 --- a/client/imports/app/app.component.ts +++ b/client/imports/app/app.component.ts @@ -6,4 +6,23 @@ import template from './app.component.html'; selector: 'app', template }) -export class AppComponent {} +export class AppComponent { + parties: any[]; + + constructor() { + this.parties = [ + {'name': 'Dubstep-Free Zone', + 'description': 'Can we please just for an evening not listen to dubstep.', + 'location': 'Palo Alto' + }, + {'name': 'All dubstep all the time', + 'description': 'Get it on!', + 'location': 'Palo Alto' + }, + {'name': 'Savage lounging', + 'description': 'Leisure suit required. And only fiercest manners.', + 'location': 'San Francisco' + } + ]; + } +}