ionic-framework
Version:
An advanced HTML5 mobile app framework built on Angular2
20 lines (17 loc) • 577 B
JavaScript
import {Component} from 'angular2/core';
import {IONIC_DIRECTIVES} from 'ionic-angular';
/*
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.
*/
({
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';
}
}