From 4d31fb1e17151e4b05a1f8a688950dff953db562 Mon Sep 17 00:00:00 2001 From: dotansimha Date: Thu, 26 Jan 2017 17:45:02 +0200 Subject: [PATCH] Step 12.36: Implement getPic --- src/pages/chats/new-chat.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/chats/new-chat.ts b/src/pages/chats/new-chat.ts index df3f90019..91898ad16 100644 --- a/src/pages/chats/new-chat.ts +++ b/src/pages/chats/new-chat.ts @@ -1,5 +1,5 @@ import { Component, OnInit } from '@angular/core'; -import { Chats, Users } from 'api/collections'; +import { Chats, Users, Pictures } from 'api/collections'; import { User } from 'api/models'; import { AlertController, ViewController } from 'ionic-angular'; import { MeteorObservable } from 'meteor-rxjs'; @@ -107,4 +107,8 @@ export class NewChatComponent implements OnInit { alert.present(); } + + getPic(pictureId): string { + return Pictures.getPictureUrl(pictureId); + } }