title: Vue.js change attribute value
body: <p>Have this 
  html </p>
  
  <pre><code>&lt;f7-input type="switch"  :checked="{typeS}"&gt;&lt;/f7-input&gt;
  </code></pre>
  
  <p>JS (vue)</p>
  
  <pre><code>export default {
        data() {
              type: []
          },
          mounted: function () {
  
  
   this.fetchType();
      },
      methods: {
          fetchType: function(){
              var typeS = [];
              this.$http.get('http://re/api/data').then(function(response){
                  this.type = response.body.object[0].type;
                  if(this.type = 'S') {
                      typeS = 'true'
                  }
              }, function(error){
                  console.log(error.statusText);
              });
          },
        }
  </code></pre>
  
  <p>}</p>
  
  <p>and i need when if(this.type = 'S') change inputn attribute on checked.
  I'm already confused about what's what. Can someone help?</p>