Skip to content

Commit

Permalink
Step 6.3: Create a stub MessagesPage component
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and DAB0mB committed Mar 23, 2017
1 parent d411134 commit e31d5b1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions 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 e31d5b1

Please sign in to comment.