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.
|
||||
|
||||
See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html
|
||||
for more info on Angular 2 Components.
|
||||
-->
|
||||
<!-- Generated template for the $CLASSNAME component -->
|
||||
<div>
|
||||
{{text}}
|
||||
</div>
|
||||
|
@ -1,13 +1,13 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { $CLASSNAMEComponent } from './$FILENAME';
|
||||
import { $CLASSNAME } from './$FILENAME';
|
||||
import { IonicModule } from 'ionic-angular';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
$CLASSNAMEComponent,
|
||||
$CLASSNAME,
|
||||
],
|
||||
imports: [
|
||||
IonicModule.forChild($CLASSNAMEComponent)
|
||||
IonicModule.forChild($CLASSNAME),
|
||||
]
|
||||
})
|
||||
export class $CLASSNAMEComponentModule {}
|
||||
export class $CLASSNAMEModule {}
|
||||
|
@ -1,16 +1,16 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
/*
|
||||
Generated class for the $CLASSNAME component.
|
||||
|
||||
See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html
|
||||
for more info on Angular 2 Components.
|
||||
*/
|
||||
/**
|
||||
* Generated class for the $CLASSNAME component.
|
||||
*
|
||||
* See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html
|
||||
* for more info on Angular Components.
|
||||
*/
|
||||
@Component({
|
||||
selector: '$FILENAME',
|
||||
templateUrl: '$FILENAME.html'
|
||||
})
|
||||
export class $CLASSNAMEComponent {
|
||||
export class $CLASSNAME {
|
||||
|
||||
text: string;
|
||||
|
||||
|
Reference in New Issue
Block a user