mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
23 lines
530 B
TypeScript
23 lines
530 B
TypeScript
import {Component, View, NgFor} from 'angular2/angular2';
|
|
|
|
import {NavController, NavParams, NavbarTemplate, Navbar, Content, Nav, List, Item} from 'ionic/ionic';
|
|
|
|
import {HackerNews} from '../hn'
|
|
|
|
|
|
@Component({ selector: 'ion-view' })
|
|
@View({
|
|
templateUrl: 'pages/single.html',
|
|
directives: [NavbarTemplate, Navbar, Content, NgFor, List, Item]
|
|
})
|
|
export class HNSinglePost {
|
|
constructor(
|
|
nav: NavController,
|
|
params: NavParams
|
|
) {
|
|
this.nav = nav;
|
|
this.post = params;
|
|
console.log('SINGLE', params);
|
|
}
|
|
}
|