Skip to content

Commit

Permalink
Step 12.36: Implement getPic
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and DAB0mB committed Feb 13, 2017
1 parent fecad13 commit 4d31fb1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 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';
Expand Down Expand Up @@ -107,4 +107,8 @@ export class NewChatComponent implements OnInit {

alert.present();
}

getPic(pictureId): string {
return Pictures.getPictureUrl(pictureId);
}
}

0 comments on commit 4d31fb1

Please sign in to comment.