mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 13:01:01 +08:00
20 lines
575 B
JavaScript
20 lines
575 B
JavaScript
import {Component} from 'angular2/core';
|
|
import {IONIC_DIRECTIVES} from 'ionic/ionic';
|
|
|
|
/*
|
|
Generated class for the <%= jsClassName %> component.
|
|
|
|
See https://angular.io/docs/ts/latest/api/core/ComponentMetadata-class.html
|
|
for more info on Angular 2 Components.
|
|
*/
|
|
@Component({
|
|
selector: '<%= fileName %>',
|
|
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html',
|
|
directives: [IONIC_DIRECTIVES] // makes all Ionic directives available to your component
|
|
})
|
|
export class <%= jsClassName %> {
|
|
constructor() {
|
|
this.text = 'Hello World';
|
|
}
|
|
}
|