Open sidebar
// app.js Vue.http.headers.common['X-CSRF-TOKEN'] = document.querySelector('#token').getAttribute('value'); Vue.config.debug = true; Vue.config.async = true; /** * The base Vue Instance */ new Vue({ el: '#app', components: { 'new-form': require('./components/form') } }); // form.js module.exports = { template: "Hallo Welt", props: ['url', 'method'], components: { 'field': require('./field') }, created: function() { console.log("Form Component created"); } } // field.js module.exports = { template: 'Ein Text feld', props: ['name', 'type'], create: function() { console.log("Field Component created"); } }
Close sidebar
Back
Please note that all pasted data is publicly available.
X (fomerly Twitter)
GitHub
Use setting
Back
Please note that all pasted data is publicly available.
X (fomerly Twitter)
GitHub
Use setting