Skip to content

Commit

Permalink
Step 4.3: Create a stub for the component
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha committed Nov 28, 2016
1 parent 03da560 commit e58a6c9
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/whatsapp-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 e58a6c9

Please sign in to comment.