Permalink
Browse files

Step 6.3: Create a stub MessagesPage component

  • Loading branch information...
dotansimha authored and darkbasic committed Jan 24, 2017
1 parent 0b66d15 commit 729e266f84eb1f125e4d94d92665acf3a8ca5bfa
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 729e266

Please sign in to comment.