Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Vue.js v-html">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <script src="http://vuefe.cn/js/vue.js"></script>
</head>
<body>
  <div id='test'>
  </div>
</body>
</html>
 
new Vue({
  el:'#test',
  data:{msg:'<span style="color:red">Hello Vue.js</span>'},
  template:'<div v-html="msg"></div>'
})
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
yowkopro
0viewers