diff options
Diffstat (limited to 'app/assets/javascripts/google_cloud/service_accounts/index.js')
-rw-r--r-- | app/assets/javascripts/google_cloud/service_accounts/index.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/assets/javascripts/google_cloud/service_accounts/index.js b/app/assets/javascripts/google_cloud/service_accounts/index.js new file mode 100644 index 00000000000..5207b44deac --- /dev/null +++ b/app/assets/javascripts/google_cloud/service_accounts/index.js @@ -0,0 +1,11 @@ +import Vue from 'vue'; +import Form from './form.vue'; + +export default (containerId = '#js-google-cloud-service-accounts') => { + const element = document.querySelector(containerId); + const { ...attrs } = JSON.parse(element.getAttribute('data')); + return new Vue({ + el: element, + render: (createElement) => createElement(Form, { attrs }), + }); +}; |