mirror of https://github.com/portainer/portainer
chore(plop): use templates as in style guide (#4916)
* chore(plop): use templates as in style guide fix [CE-483] * chore(plop): export component and add to modulepull/4930/head^2
parent
32a9a2e46b
commit
d0d38990c7
@ -1,6 +1,9 @@
|
|||||||
import {{properCase name}}Controller from './{{dashCase name}}/{{camelCase name}}Controller.js'
|
import angular from 'angular';
|
||||||
|
import controller from './{{dashCase name}}.controller.js'
|
||||||
|
|
||||||
angular.module('portainer.{{module}}').component('{{camelCase name}}', {
|
export const {{camelCase name}} = {
|
||||||
templateUrl: './{{camelCase name}}.html',
|
templateUrl: './{{dashCase name}}.html',
|
||||||
controller: {{properCase name}}Controller,
|
controller,
|
||||||
});
|
};
|
||||||
|
|
||||||
|
angular.module('portainer.{{module}}').component('{{camelCase name}}', {{camelCase name}})
|
||||||
|
Loading…
Reference in new issue