Skip to content

Instantly share code, notes, and snippets.

@siumhossain
Created May 11, 2022 09:14
Show Gist options
  • Save siumhossain/fcdb9c87e8cd609e762511ae9a2a81d9 to your computer and use it in GitHub Desktop.
Save siumhossain/fcdb9c87e8cd609e762511ae9a2a81d9 to your computer and use it in GitHub Desktop.
clear space and replace under score for making link

function to clear under score

thumbnailClick(value){
            const title = value.title
            const clearTitle = title.replaceAll(' ','_')
            this.$router.push({
                path:`${clearTitle}/`
            })

        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment