'use strict' ; import { parentView , View } from '../../index' ; import { IPostData } from 'teambition' ; @ parentView ( 'DetailView' ) export class PostView extends View { public post : IPostData ; public onInit ( ) { return this . parent . onInit ( ) ; } public onAllChangesDone ( ) { this . post = this . parent . detail ; } } angular . module ( 'teambition' ) . controller ( 'PostView' , PostView ) ;