Sha256: 86210de70284d05462ba8923d11d42a2ca7d40125236bef5cb1e6c9e242651c1
Contents?: true
Size: 346 Bytes
Versions: 1
Compression:
Stored size: 346 Bytes
Contents
async update() { if(this.validateForm()){ const payload = this.<%= @options[:model][:name] %> const response = await api.put( `<%= "#{@options[:model][:name].pluralize}/${this.#{@options[:model][:name]}.id}" %>`, payload ); alert(response.data.message) this.index(); } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vue_component_builder-0.1.2 | lib/builder/template/default/js/methods/update.js.erb |