Questions tagged [angular-fontawesome]

Questions about @fortawesome/angular-fontawesome library to support FontAwesome 5 in Angular applications.

Source code and examples for @fortawesome/angular-fontawesome library can be found on GitHub here.

70 questions
0
votes
0 answers

I just updated an angular project from ver 6 to 15 but whenever i try the project it brings the following error

Error: src/app/app.module.ts:38:5 - error NG6002: 'Angular2FontawesomeModule' does not appear to be an NgModule class. 38 Angular2FontawesomeModule, ~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/angular2-fontawesome/src/index.d.ts:1:22 1 export declare…
0
votes
3 answers

How to remove angular-fontawesome from a project?

I installed Angular fontawesome with this command found here: https://www.npmjs.com/package/@fortawesome/angular-fontawesome ng add @fortawesome/angular-fontawesome@6 My problem is I realized I wanted to change into Font Awesome's SCSS version and…
0
votes
1 answer

How to know if icon exists

Suppose you have the following scenario: there is an input box on the left and on the right there is a fontawesome icon. The icon on the right simply has as name the same as the value of the input box. This means that a user can type in the input…
0
votes
0 answers

FontAwesome icons in Primeng Panel Menu Module

How to add fontawesome icons to Primeng Panel Menu Module. I tried various ways using CSS, adding it in the items array of Primeng nothing is working. Assigning the icon to the icon value in the items array. app.component.ts this.items = [ { …
0
votes
1 answer

Font Awesome class mapped to angular import definitions

https://fontawesome.com/icons/ When searching for an icon it gives you the class to enter into the HTML, but angular requires to use the icondefinitions. for example: Would be the following with angular:
0
votes
1 answer

Passing variable into [icon] for Font Awesome not working

I am using Font Awesome with Angular. I want to loop through some data via *ngFor to create icons in a navigation bar. However, the [icon] is not accepting the values from the variable. Component HTML
0
votes
0 answers

Angular multiple modules providing same service

I am using a library (FontAwesome for Angular) which provides two services under the same name: Lets say the first one is the real one: @Injectable({ providedIn: 'root', }) export class Service { } @NgModule({ exports: [...], }) export class…
0
votes
1 answer

Integrating Font Awesome Pro (zip distribution) with Angular

I want to integrate Font Awesome Pro 6, of which our company bought a license, into our Angular project(s). My boss gave me the zip distribution (not the NPM private token, which is subject to renewal), and I would like to upgrade…
usr-local-ΕΨΗΕΛΩΝ
  • 26,101
  • 30
  • 154
  • 305
0
votes
1 answer

Is it possible to use an angular-fontawesome icon in sweetalert2 title?

Is it possible to use an angular-fontawesome icon inside a sweetalert2 title? I tried this but it doesn't work, the icon doesn't show and the inspector show size 0x0. I tried overriding the styles but I'm not very good with CSS. swal.fire({ …
0
votes
1 answer

angular fontawesome social icons issue

I have done the npm install for font-awesome icons in my angular application, and my package.json contains: "@fortawesome/angular-fontawesome": "^0.5.0", "@fortawesome/fontawesome-svg-core": "^1.2.36", "@fortawesome/free-solid-svg-icons":…
Madasu K
  • 1,813
  • 2
  • 38
  • 72
0
votes
0 answers

How do I correctly stack fa icons in Angular FontAwesone

I’m tryin to stack two fa icons using Angular Fontawesome. So far I have this:
plasmy
  • 99
  • 3
  • 9
  • 32
0
votes
1 answer

Use FontAwesome icons in table header in Angular

I'm trying to set the sort, sortUp, and sortDown icons to my table headers, following the table tutorial from ng-bootstrap. There's a NgbdSortableHeader directive that changes the sorting of the column: @Directive({ selector: 'th[sortable]', …
Nicke Manarin
  • 3,026
  • 4
  • 37
  • 79
0
votes
1 answer

Show fortawesome icons in HTML2Canvas with Angular 10

I am trying to export an html page to pdf using HTML2Canvas (https://html2canvas.hertzen.com/) and PdfMake in an Angular 10 application. The problem is that the FortAwesome icons doesnt show up in the generated canvas. Is use my icons as follow in…
0
votes
2 answers

fa-icon throws error on valid closing tag

I have an Angular application I'm working on, in this application I have generated a small component for listing files and I'm working on some icons for editing on of the fields. However I've encountered an issue with the fa-icon component. I have…
Lord Drake
  • 172
  • 2
  • 12
0
votes
2 answers

font awesome icons are not showing angular 6

I have used ngx-tree-select for multi-level-selection. https://stackblitz.com/edit/ngx-tree-select Inside dropdown font awesome icons are not showing. When inspect, . font awesome version which I had is "@fortawesome/fontawesome-free": "^5.2.0", and…
Kavya Shree
  • 1,014
  • 2
  • 17
  • 52