Vue Page Title, a Vue.js Plugin

in utopian-io •  10 months ago

Vue.js html/page title manager

Repository

https://github.com/vinicius73/vue-page-title

What is the project about?

A plugin for Vue.js that centralizes and makes it easy to manipulate the page title tag.

Usage

Setup

import Vue from 'vue'
import VuePageTitle from 'vue-page-title'

Vue.use(VuePageTitle, {
  suffix: '- My App '
})

in component

<script>
export default {
  title: 'Page title',
  mounted () {
    const servantTypes = [
      'Ruler', 'Saber', 'Archer', 'Lancer', 'Rider', 'Caster', 'Berserker', 'Assassin'
    ]
    this.$interval = setInterval(() => {
      this.$title = servantTypes[Math.floor(Math.random() * servantTypes.length)]
    }, 2000)
  },
  beforeDestroy () {
    clearInterval(this.$interval)
  }
}
</script>

<template>
  <div>{{ $title }}</div>
</template>

Technology Stack

  • rollup
    To provide various package formats, opening up more possibilities of use.
  • ava
    A simple yet fast and efficient test runner

How to contribute?

Contact on Discord (vinicius73#5705), Github Issues or Replying to this post

GitHub Account

https://github.com/vinicius73

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hey @vinicius73
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Thank you for your contribution. Its good to see a Plugin Development, but feels like a very small plugin. Are you planning of adding more features to this plugin?

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

·

Thanks @codingdefined
I plan to create a demo soon.

Congratulations @vinicius73! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

Click here to view your Board

Support SteemitBoard's project! Vote for its witness and get one more award!