UNPKG

ionic-framework

Version:

The ionic-framework package comes with both Javascript and Sass frontend dependencies, located in the root of the package, and a Node API, located in `tooling/`.

20 lines (17 loc) 575 B
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'; } }