• +91 9723535972
  • info@interviewmaterial.com

Vue JS Interview Questions and Answers

Question - How do you define custom key modifier aliases?

Answer -

You can define custom key modifier aliases via the global config.keyCodes. There are few guidelines for the properties

You can't use camelCase. Instead you can use kebab-case with double quotation marks
You can define multiple values in an array format
Vue.config.keyCodes = {
  f1: 112,
  "media-play-pause": 179,
  down: [40, 87]
}

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners