You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the most part you should stick with the {{fa-icon}} component, but if you need to replace specific <i> tags there is a helper for that. Using it in a component looks like:
import Component from '@ember/component';
import { dom } from '@fortawesome/fontawesome-svg-core';
import { next } from '@ember/runloop';
export default Component.extend({
/**
* Convert `<i>` into SVG icons
* Uses: https://fontawesome.com/how-to-use/with-the-api/methods/dom-i2svg
*/
didRender() {
next(() => {
dom.i2svg({node: this.element});
});
},
});
works but;
does not.
Do I need to do something special?
environment.js contains;
The text was updated successfully, but these errors were encountered: