Sleep

Convert your Vue.js embedded records in to slugs #.\n\nSlugify VueJs.\nOften strands of texts need to have to be in slug form to describe what the information of an URL is actually. A Vue.js component is on call which provides very easy sale of messages to slugs. Using this component along with your v-models you can easily completely transform everything written in to a slug.\nStay Demonstration.\nTake a look at the example listed below.\nInstance.\nTo begin partnering with the Slugify component utilize the observing command to install it.\nnpm mount vue-suglify.\n\nOR.\n\nyarn include vue-suglify.\nIncorporate it to your Js file.\nwindow.Vue = demand(' vue').\n\nbring in VueSuglify coming from 'vue-suglify'.\n\nconst app = new Vue( {-String.Split- -\nel: '

app',.parts: VueSuglify.,.information: label:",.slug:".,.-|-|-|-random-} ).An easy usage is by using label and also model name associates:.

Various other choices include:.Disabling the input by passing the disabled quality as boolean.The separator can alter by passing sep attribute.Create the very first letter to be UpperCase by using lowerCase.Add errors associate as boolean as well as is-danger CSS training class will be actually appended.You can easily also pass an object called extras where you substitute a letter along with one thing of your personal. Below are 2 examples, one making use of the bonus attr for producing a slug utilizing only one character, and the sep attr which divides words appropriately.


If you are actually intrigued for even more or even you have any type of bugs and tips, click on this link. That's it!