ionic-team / ionic-team/ionic-cli
ionic generate component foo duclicated name
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 682
- PR merge metrics
- No merged PRs in 30d
Description
I use ionic generate component foo to create a component ,the folder struct is right but when I open the foo.ts the name is FooComponentComponent
the generate code:
@Component({
selector: 'foo',
templateUrl: 'foo.html'
})
export class FooComponentComponent {
text: string;
constructor() {
console.log('Hello FooComponent Component');
this.text = 'Hello World';
}
}
ionic info:
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 1.3.12
Cordova Platforms : android 6.3.0 browser 5.0.1
Ionic Framework : ionic-angular 2.3.0
System:
Android SDK Tools : 25.2.5
Node : v8.9.0
npm : 5.5.1
OS : Windows 10
Misc:
backend : legacy
Contributor guide
Assessment
This issue has not been assessed yet.