Permalink
Browse files

Step 6.3: Create a stub MessagesPage component

  • Loading branch information...
dotansimha authored and darkbasic committed Jan 24, 2017
1 parent 7428ca5 commit da3d1addefce942ec6f3000eb0f47c113a713560
Showing with 21 additions and 0 deletions.
  1. +21 −0 src/pages/messages/messages.ts
@@ -0,0 +1,21 @@
import { Component, OnInit } from '@angular/core';
import { NavParams } from 'ionic-angular';
import { Chat } from 'api/models';
@Component({
selector: 'messages-page',
template: `Messages Page`
})
export class MessagesPage implements OnInit {
selectedChat: Chat;
constructor(navParams: NavParams) {
this.selectedChat = <Chat>navParams.get('chat');
console.log('Selected chat is: ', this.selectedChat);
}
ngOnInit() {
}
}

0 comments on commit da3d1ad

Please sign in to comment.