Category : axios

in App.vue <multiselect v-model="value" :multiple="true" tag-placeholder="Add this as new tag" placeholder="Search or add a tag" label="email" track-by="email" :options="users" :taggable="true" @tag="addTag" @select="toggleSelected"> </multiselect> <input type="text" name="users[]" v-for="user in value" :value="user.email" v-bind:key="user.id"> data() { return { users:[], value: null, selectedPersonen: [], test:false, }; }, methods : { create :function () { const themaName = document.querySelector("input[name=topic]").value; const themaUrl ..

Read more

With Axios I get a form created with Symfony FormBuilder, which I then display in a modal: template.html.twig: productId = {{product.id}}; var url = Routing.generate(“stripe_admin_product_update_form”, {id: productId}); axios.get(url) .then(function(response){ var form = response.data.form; Swal.fire({ title: “Modifier ?”, html: form, icon: “question”, showCancelButton: true, allowOutsideClick: () => !Swal.isLoading(), preConfirm: function(result) { //submit form } }); }); ..

Read more