Vue JS call a function on load Example

Posted by LaravelIndia - 4 years ago

If you want to call a function on page load in vue js then in this example i will show you how to trigger function on page load in vue js. we will run function on page load vue application.

<!DOCTYPE html>
    <title>Vue JS call function on load Example -</title>
    <script src=""></script>

<div id="app">

  {{ message }}


<script type="text/javascript">

    var app = new Vue({
      el: '#app',
      data: {
        message: 'Hello Vue!'
            myFunctionOnLoad: function() {
            console.log('call on load...');
      created: function(){



maxwin slot mahjong ways