Sha256: 38660c30d602f442294bf75fafc3f981f58818e53f1a939c3666f54640b3ad6d

Contents?: true

Size: 294 Bytes

Versions: 3

Compression:

Stored size: 294 Bytes

Contents

async <%=@method_name %>() {
    this.loading = true;
    const response = await api.delete(`<%= "#{@options[:model][:name].pluralize}/${this.#{@options[:model][:name]}.id}" %>`,);
    this.<%= @options[:model][:name].pluralize %> = response.data;
    this.index();
    this.loading = false;
},

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vue_component_builder-0.1.2 lib/builder/template/element-plus/js/methods/destroy.js.erb
vue_component_builder-0.1.1 lib/builder/template/element-plus/js/methods/destroy.js.erb
vue_component_builder-0.1.0 lib/builder/template/element-plus/js/methods/destroy.js.erb