Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. Vue.component('example', {
  2.  
  3. // LOAD ANOTHER SCIPT : SAY cdn.myScript
  4.  
  5. // render function as alternative to 'template'
  6. render: function (createElement) {
  7. return createElement(
  8. // {String | Object | Function}
  9. // An HTML tag name, component options, or function
  10. // returning one of these. Required.
  11. 'h2',
  12. // {Object}
  13. // A data object corresponding to the attributes
  14. // you would use in a template. Optional.
  15. {
  16. style: {
  17. color: 'red',
  18. },
  19. domProps: {
  20. innerHTML: 'My Example Header'
  21. }
  22. },
  23.  
  24. )},
  25. methods:{
  26. a:function(z){
  27. myScript.hello();
  28. }
  29. }
  30. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement