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 authored and DAB0mB committed Dec 16, 2016
1 parent 79014cc commit ce92e21
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions client/imports/pages/chat/messages-page.component.ts
@@ -0,0 +1,21 @@
import {Component, OnInit} from "@angular/core";
import {NavParams} from "ionic-angular";
import {Chat} from "../../../../both/models/chat.model";

@Component({
selector: "messages-page",
template: `Messages Page`
})
export class MessagesPage implements OnInit {
private selectedChat: Chat;

constructor(navParams: NavParams) {
this.selectedChat = <Chat>navParams.get('chat');

console.log("Selected chat is: ", this.selectedChat);
}

ngOnInit() {

}
}

0 comments on commit ce92e21

Please sign in to comment.