In my main.js I have:
import { library } from '@fortawesome/fontawesome-svg-core'
import { faUserSecret } from '@fortawesome/free-solid-svg-icons'
import { faFontAwesome } from '@fortawesome/free-brands-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
library.add(faUserSecret)
library.add(faFontAwesome)
Vue.component('font-awesome-icon', FontAwesomeIcon)
In my component I have
<button class="btn btn-secondary" type="button">
<font-awesome-icon :icon="['fa', 'fa-search']" />
<font-awesome-icon :icon="['fas', 'user-secret']" />
</button>
And I only see the second icon...what am I doing incorrectly here?
I think instead of:
<font-awesome-icon :icon="['fa', 'fa-search']" />
it should be:
<font-awesome-icon :icon="['fa', 'search']" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With