var authorExtend = Vue.extend({ template:"<p><a :href='authorUrl'>{{authorName}}</a></p>", data:function(){ return{ authorName:'JSPang', authorUrl:'http://www.jspang.com' } } }); new authorExtend().$mount('author');
<author></author>