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 darkbasic committed Oct 16, 2017
1 parent 7428ca5 commit da3d1ad
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/pages/messages/messages.ts
Original file line number Diff line number Diff line change
@@ -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.