Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Function that creates the component
- function optionSettingsComponent(){
- return {
- props: {
- fieldConfig : {
- type: Object,
- required: true
- }
- }
- }
- }
- //Test config
- let fieldConfig = {
- id: 'fld1234',//...
- };
- //Test app
- new Vue({
- components: {
- 'option-settings' : optionSettingsComponent()
- },
- template: '<div><option-settings></option-settings></div>',
- el: '#test-settings',
- data(){
- }
- });
Add Comment
Please, Sign In to add comment