Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://unpkg.com/vue@2.1.10"></script>
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />  
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <div id="app" class="container-fluid">
    <h2>Vue Input Example</h2>
   <input type="text" v-model="film.a"/>
    <br /><br />
    {{film}}
  </div>
</body>
</html>
 
new Vue({
  el: '#app',
  data: function() {
    return {
    }
  },
  computed: {
    film () {
      var filmdata ={}
      if (1==1) {
      filmdata.a = ''
      }
      return filmdata
    }
  }
  
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers