[Vuejs]-Change content view of Laravel layout without page refresh

0👍

I believe you can get this done by using jQuery load function –

$(function () {
    $("#menu_option_a").on("click", function () {
        $("#dashboard").load("View1.html");
    });
    $("#menu_option_b").on("click", function () {
        $("#dashboard").load("View2.html");
    });
});

0👍

Changing a view without page load means we need to use the ajax techology. Vuejs is a frontend frameework the allows us to acomplish that easily with its axios library

Leave a comment