mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(templates): update component templates
This commit is contained in:
@ -1,9 +1,4 @@
|
|||||||
<!--
|
<!-- Generated template for the $CLASSNAME component -->
|
||||||
Generated template for the $CLASSNAME component.
|
|
||||||
|
|
||||||
See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html
|
|
||||||
for more info on Angular 2 Components.
|
|
||||||
-->
|
|
||||||
<div>
|
<div>
|
||||||
{{text}}
|
{{text}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { $CLASSNAMEComponent } from './$FILENAME';
|
import { $CLASSNAME } from './$FILENAME';
|
||||||
import { IonicModule } from 'ionic-angular';
|
import { IonicModule } from 'ionic-angular';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
$CLASSNAMEComponent,
|
$CLASSNAME,
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
IonicModule.forChild($CLASSNAMEComponent)
|
IonicModule.forChild($CLASSNAME),
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class $CLASSNAMEComponentModule {}
|
export class $CLASSNAMEModule {}
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
/*
|
/**
|
||||||
Generated class for the $CLASSNAME component.
|
* Generated class for the $CLASSNAME component.
|
||||||
|
*
|
||||||
See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html
|
* See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html
|
||||||
for more info on Angular 2 Components.
|
* for more info on Angular Components.
|
||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: '$FILENAME',
|
selector: '$FILENAME',
|
||||||
templateUrl: '$FILENAME.html'
|
templateUrl: '$FILENAME.html'
|
||||||
})
|
})
|
||||||
export class $CLASSNAMEComponent {
|
export class $CLASSNAME {
|
||||||
|
|
||||||
text: string;
|
text: string;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user