mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
* chore(project): add angular components code snippets * chore(project): add plopjs templates * feat(project): use class in controller template * chore(client): rename generators * chore(vscode): fix controller snippets * chore(git): ignore only specific files in .vscode * chore(plop): move generators to app * chore(plop): fix portainer module * fix(git): fix gitignore vscode * chore(vscode): remove symling to code-snippets * refactor(build): move plop templates to root * feat(build): add readme for plop
6 lines
263 B
Handlebars
6 lines
263 B
Handlebars
import {{properCase name}}Controller from './{{dashCase name}}/{{camelCase name}}Controller.js'
|
|
|
|
angular.module('portainer.{{module}}').component('{{camelCase name}}', {
|
|
templateUrl: './{{camelCase name}}.html',
|
|
controller: {{properCase name}}Controller,
|
|
});
|