mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
25 lines
579 B
JavaScript
25 lines
579 B
JavaScript
import {Descendent, NgElement, Component, View as NgView, bootstrap} from 'angular2/angular2';
|
|
import {bind} from 'angular2/di';
|
|
import {View, Content, Nav, NavPane} from 'ionic/ionic';
|
|
|
|
import {HackerNews} from 'hn';
|
|
import {HNTopStories} from 'pages/top';
|
|
|
|
@Component({ selector: '[ion-app]' })
|
|
@NgView({
|
|
templateUrl: 'main.html',
|
|
directives: [View, Content, Nav, NavPane]
|
|
})
|
|
export class HNApp {
|
|
constructor(
|
|
@NgElement() element:NgElement
|
|
) {
|
|
console.log('IonicApp start: HackerNews', HackerNews)
|
|
|
|
this.splashPage = HNTopStories
|
|
}
|
|
}
|
|
|
|
bootstrap(HNApp);
|
|
|