1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

chore(project): add angular components code snippets (#3649)

* 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
This commit is contained in:
Chaim Lev-Ari 2020-06-04 08:01:31 +03:00 committed by GitHub
parent 38066ece33
commit 766ced7cb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 804 additions and 33 deletions

View file

@ -0,0 +1,6 @@
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,
});