Guest User

Untitled

a guest
Feb 16th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. // const componentClass = Vue.extend(LoadingWidget)
  2. // const instance = new componentClass({
  3. // propsData: { type: 'primary' }
  4. // })
  5. // instance.$mount()
  6.  
  7. const profile = Vue.extend({
  8. template: '<p>{{firstName}} {{lastName}} aka {{alias}}</p>',
  9. data() {
  10. return {
  11. firstName: 'Walter',
  12. lastName: 'White',
  13. alias: 'Heisenberg'
  14. }
  15. }
  16. })
  17.  
  18. const instance = new profile({
  19. propsData: { type: 'primary' }
  20. })
  21.  
  22. instance.$mount()
  23.  
  24. this.headerSlot[0].appendChild(instance.$el)
Add Comment
Please, Sign In to add comment