Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vue.component('example', {
- // LOAD ANOTHER SCIPT : SAY cdn.myScript
- // render function as alternative to 'template'
- render: function (createElement) {
- return createElement(
- // {String | Object | Function}
- // An HTML tag name, component options, or function
- // returning one of these. Required.
- 'h2',
- // {Object}
- // A data object corresponding to the attributes
- // you would use in a template. Optional.
- {
- style: {
- color: 'red',
- },
- domProps: {
- innerHTML: 'My Example Header'
- }
- },
- )},
- methods:{
- a:function(z){
- myScript.hello();
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement