Guest User

Untitled

a guest
Mar 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. //Function that creates the component
  2. function optionSettingsComponent(){
  3. return {
  4. props: {
  5. fieldConfig : {
  6. type: Object,
  7. required: true
  8. }
  9. }
  10. }
  11. }
  12.  
  13. //Test config
  14. let fieldConfig = {
  15. id: 'fld1234',//...
  16. };
  17.  
  18. //Test app
  19. new Vue({
  20. components: {
  21. 'option-settings' : optionSettingsComponent()
  22. },
  23. template: '<div><option-settings></option-settings></div>',
  24. el: '#test-settings',
  25. data(){
  26.  
  27. }
  28. });
Add Comment
Please, Sign In to add comment