Vue js Timing Events setTimeout Function

Vue js Timing Events setTimeout Function

In this Post We Will Explain About is Vue js Timing Events setTimeout Function With Example and Demo.

Welcome on infinityknow.com – Examples ,The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to Delaying Execution with setTimeout() – Vuejs

In this post we will show you Best way to implement setInterval and setTimeout using Vuejs Functions, hear for How to Vuejs: use $timeout, not setTimeout -Example with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

markup Languages(index.html)

<div id="liveapp">
  <loading-screen :is-loading="data_home_loading"></loading-screen>
  <h1>Welcome - Hello world! - infinityknow.com</h1>
</div>

Script Languages(index.js)

Vue.component('loading-screen', {
  template: '<span :title="data_home_loading"></span>',
  props: ['data_home_loading'],
  data () {
    return {
      custom_plzwait: null
    }
  },
  mounted () {
    this.data_page_ipdate()
  },
  beforeUpdate () {
    this.data_page_ipdate()
  },
  methods: {
    data_page_ipdate () {
      if (this.data_home_loading && this.custom_plzwait == null) {
        this.custom_plzwait = pleaseWait({
          logo: 'https://infinityknow.com/assets/images/live24u.png',
          backgroundColor: '#3D3D3D',
          loadingHtml: '<p class="loading-message">infinityknow.com for A good day to we fine Welcome user!</p>'
        })
      }
      if (!this.data_home_loading && this.custom_plzwait != null) {
        this.custom_plzwait.finish()
      }
    }
  }
})

new Vue({
  el: '#liveapp',
  data: {
    data_home_loading: true
  },
  mounted () {
    setTimeout(() => {
      this.data_home_loading = false
    }, 5000)
  }
})

Example

READ :  vue js Grid Component vue Datatables

I hope you have Got setInterval and setTimeout using Vuejs Functions And how it works.I would Like to have FeadBack From My Blog(infinityknow.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(infinityknow.com) Are Most Always Welcome.

Add a Comment

Your email address will not be published. Required fields are marked *