mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): update generator directories
This commit is contained in:
@@ -9,11 +9,11 @@ import {IONIC_DIRECTIVES} from 'ionic/ionic';
|
||||
*/
|
||||
@Component({
|
||||
selector: '<%= fileName %>',
|
||||
templateUrl: '<%= directory %>/<%= fileName %>/<%= fileName %>.html',
|
||||
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, I\'m <%= jsClassName %>';
|
||||
this.text = 'Hello World';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ module.exports = ComponentGenerator;
|
||||
|
||||
function ComponentGenerator(options) {
|
||||
Generator.call(this, options);
|
||||
this.directory = path.join('app', 'components');
|
||||
this.directory = 'components';
|
||||
}
|
||||
|
||||
ComponentGenerator.prototype = Object.create(Generator.prototype);
|
||||
|
||||
Reference in New Issue
Block a user