[Vuejs]-How I can add data-icon attribute in select option using vue.js

0👍

You shoul keep all your static files in src/assets/.
For example if you wont use svg you can create folder with your svg files and after use some of file in your code or html template.

EDITED:

data: () => ({
date: new Date(),
interval: null,
dropdown: null,
languages: [
  {
    lang: "Українська",
    langId: "uk-UA",
    dataIcon: require("@/assets/svg/flag-ukraine.svg"),
  },
  {
    lang: "English",
    langId: "en-US",
    dataIcon:
      "https://images.ua.prom.st/1440764527_saharnaya-kartinka-lyubov.jpg"
  }
]
  })

You have very strange structure of folders. By default and recommended vue js documentation is something like this

Leave a comment