Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

active-class router-link

//when a route is active we can use this to add a certain style to the element:
<router-link to="/[route-name]" active-link="active'> <router-link>

//when the route is active, active-link will add the class active to the element
//you can define then a certain style for elements that contain the class active
Comment

active link

#top-menu .current a
{
    color: orange !important;
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript some 
Javascript :: react cdn link 
Javascript :: foreach method javascript 
Javascript :: javascript var,let,const compare 
Javascript :: outer click on div hide div in jqeury 
Javascript :: discord.js remove embed from message 
Javascript :: ${} js 
Javascript :: jspdf 
Javascript :: delete element of array javascript 
Javascript :: mod operation in shopify 
Javascript :: react native make safe view in mobile 
Javascript :: graphql query 
Javascript :: javascript get content of input 
Javascript :: mongodb mongoose with next js connection 
Javascript :: learn mongodb 
Javascript :: funciones invocan a funciones javascript 
Javascript :: feet to mile js 
Javascript :: pm2 config changes update environments 
Javascript :: js how to calculate factorial 
Javascript :: get url parameter nuxt 3 
Javascript :: javascript optional add object key 
Javascript :: jquery add br in text 
Javascript :: form.reset function in javascript 
Javascript :: js sleep 1 sec 
Javascript :: javascript jquery map a range of numbers 
Javascript :: Mongoose filter by multiple fields 
Javascript :: how to sho the active navigation ling using javascript 
Javascript :: simple id using javascrip math randomt 
Javascript :: create express js project 
Javascript :: joi regex validate 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =