Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to style on-click in react/ vuejs router

<template>
  <div>
    <router-link to="/" class="home"> Home </router-link>
  </div>
</template>
<script></script>
<style lang="css" scoped>
.home {
  color: black; /**/
}
.home:active {
  color: green; /* changes the color of the home text to green when clicked*/
}
</style>
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to cut and paste an element in vanilla javascript 
Javascript :: react axios project importing online same products with table from fake API 
Javascript :: asp.net updatepanel autoscroll fix 
Javascript :: select 2 is not working in nodejs 
Javascript :: modify summernote with js 
Javascript :: dropzone js change dynamic url 
Javascript :: Listen to custom event in Vue js 
Javascript :: fabric.js drawings 
Javascript :: Register Multiple Models In Admin 
Javascript :: JS function examples 
Javascript :: Parsing the URL string using the Legacy API 
Javascript :: ajax file upload 
Javascript :: react js public folder image path search 
Javascript :: js button that starts programe 
Javascript :: restart my react -Dom 
Javascript :: nodejs split array into chunks 
Javascript :: how to square number in javascript 
Javascript :: updating a random variable in a function 
Javascript :: Make a Responsive Portfolio Website: JavaScript and HTML 
Javascript :: nodejs version abfragen 
Javascript :: react-native-wagmi-charts 
Javascript :: useMediaquery hook react 
Javascript :: devlop 
Javascript :: mongoose.js clause where 
Javascript :: check if content is overflowing react 
Javascript :: getting xml from response, make sure server returns valid xml and the "content-type" header is set 
Javascript :: js read html file 
Javascript :: AngularJS Form validation transition to valid when some elements are not even touched yet 
Javascript :: Use of typescript generics for extended parametres 
Javascript :: JSON.stringify on Arrays adding numeric keys for each array value 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =