Load form data via REST into vue-form-generator Load form data via REST into vue-form-generator vue.js vue.js

Load form data via REST into vue-form-generator


You can just assign this.schema.fields.placeholder to the value returned by the API like following:

  methods: {    fetchCompanyData(){      this.$http.get('http://echo.jsontest.com/key/value/load/dynamicly').then((response) => {        console.log(response.data.company);        this.schema.fields.placeholder = response.data.company      }, (response) => {        console.log(response);      });    }  }