mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
chore(): begin adding ionic components to mono-repo.
This commit is contained in:
@ -0,0 +1,4 @@
|
||||
<!-- Generated template for the $CLASSNAME component -->
|
||||
<div>
|
||||
{{text}}
|
||||
</div>
|
@ -0,0 +1,16 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { IonicModule } from 'ionic-angular';
|
||||
import { $CLASSNAME } from './$FILENAME';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
$CLASSNAME,
|
||||
],
|
||||
imports: [
|
||||
IonicModule,
|
||||
],
|
||||
exports: [
|
||||
$CLASSNAME
|
||||
]
|
||||
})
|
||||
export class $CLASSNAMEModule {}
|
@ -0,0 +1,3 @@
|
||||
$FILENAME {
|
||||
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
|
||||
describe('$CLASSNAME', () => {
|
||||
it('should do something', () => {
|
||||
expect(true).toEqual(true);
|
||||
});
|
||||
});
|
22
packages/ionic-angular/scripts/templates/component/ts.tmpl
Normal file
22
packages/ionic-angular/scripts/templates/component/ts.tmpl
Normal file
@ -0,0 +1,22 @@
|
||||
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 Components.
|
||||
*/
|
||||
@Component({
|
||||
selector: '$FILENAME',
|
||||
templateUrl: '$FILENAME.html'
|
||||
})
|
||||
export class $CLASSNAME {
|
||||
|
||||
text: string;
|
||||
|
||||
constructor() {
|
||||
console.log('Hello $CLASSNAME Component');
|
||||
this.text = 'Hello World';
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user