mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
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 module
This commit is contained in:
parent
32a9a2e46b
commit
d0d38990c7
3 changed files with 11 additions and 8 deletions
|
@ -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}}', {
|
||||
templateUrl: './{{camelCase name}}.html',
|
||||
controller: {{properCase name}}Controller,
|
||||
});
|
||||
export const {{camelCase name}} = {
|
||||
templateUrl: './{{dashCase name}}.html',
|
||||
controller,
|
||||
};
|
||||
|
||||
angular.module('portainer.{{module}}').component('{{camelCase name}}', {{camelCase name}})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue