About Just In Case


About Just In Case


About Just In Case


About Just In Case


About Just In Case


About Just In Case


Introduction


Preview


Let’s see a simple example of pagination with AJAX request using Laravel framework, Vue.js and Bulma css framework.

Back end

Route::get(‘/’, function() {
return view(‘welcome’);
});
Route::get(‘posts’, ‘PostController@index’);

Here we can see two routes for: the first route just render our view welcome.blade.php


Let’s look at Vue component Task-list.vue from previous article in details. Here is the code:

We used single file component in this case. It has .vue extension (as you see) and can contain three section:

  1. <template></template>
  2. <style></style>
  3. <script></script>

Template

mitrallex

Aleksei Mitrakhovich

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store