You didn't provide what you have installed or configured.
But here comes my answer anyways...
I have managed load FontAwesome into my Nebular app. That said, not replacing EvaIcons but adding them additionally to Eva.
- install FontAwesome.
- Include it in your angular.json
- Register the icon package in app.component
- Use the FontAwesome within Nebulars nb-icon component
In Code:
1. npm install --save @fortawesome/fontawesome-free
2. "styles": [..., "node_modules/@fortawesome/fontawesome-free/css/all.css", ...],
"scripts": [..., "node_modules/@fortawesome/fontawesome-free/js/all.js", ...]
3. import { NbIconLibraries } from '@nebular/theme';
@Component({
selector: 'ngx-app',
template: '<router-outlet></router-outlet>',
})
export class AppComponent implements OnInit {
constructor(private iconLibraries: NbIconLibraries) {
this.iconLibraries.registerFontPack('fas', { packClass: 'fas', iconClassPrefix: 'fa' });
this.iconLibraries.registerFontPack('far', { packClass: 'far', iconClassPrefix: 'fa' });
this.iconLibraries.registerFontPack('fab', { packClass: 'fab', iconClassPrefix: 'fa' });
this.iconLibraries.setDefaultPack('far');
...
4. <nb-icon icon="arrow-right" pack="fas"></nb-icon>
(Maybe there is a better way of doing this, maybe loading the js isn't required idk...)
This way you may use either Eva or FontAwesome Icons, or from whatever registered pack.
Eva: <nb-icon icon="SOME_ICON"> </nb-icon>
FontAwesome: <nb-icon icon="SOME_ICON" pack="fas/far/fab/fal/fad"></nb-icon>