This commit is contained in:
Max Lynch
2015-04-24 17:45:21 -05:00
parent c2bc6a2ac4
commit 2cf171038e
2 changed files with 4 additions and 2 deletions

View File

@ -104,6 +104,7 @@ class StreamTab {
];
}
selectPost(post) {
console.log('Select post', post);
this.navPane.push(PostDetail, {
post
}, {
@ -114,12 +115,13 @@ class StreamTab {
@Component({ selector: 'post-detail-tab' })
@Template({
url: 'pages/posts/detail.html',
url: 'pages/post/detail.html',
directives: [View, Content]
})
class PostDetail {
constructor(navPane: NavPane) {
this.navPane = navPane
this.title = 'Hello'
}
selectItem() {
this.navPane.push(PostDetailTab)

View File

@ -1 +1 @@
<h1>{{post.title}}</h1>
<h1>{{title}}</h1>