
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@devoto13/angular-fontawesome
Advanced tools
Official Angular component for Font Awesome 5
Using Yarn
$ yarn add @fortawesome/fontawesome-svg-core
$ yarn add @fortawesome/free-solid-svg-icons
# See Compatibility table below to choose correct version
$ yarn add @fortawesome/angular-fontawesome@<version>
Using NPM
$ npm install @fortawesome/fontawesome-svg-core
$ npm install @fortawesome/free-solid-svg-icons
# See Compatibility table below to choose correct version
$ npm install @fortawesome/angular-fontawesome@<version>
@fortawesome/angular-fontawesome | Angular |
---|---|
0.1.x | 5.x |
0.2.x | 6.x |
0.3.x | 6.x && 7.x |
0.4.x, 0.5.x | 8.x |
To get up and running using Font Awesome with Angular follow below steps:
Add FontAwesomeModule
to imports
in
src/app/app.module.ts
:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
@NgModule({
imports: [
BrowserModule,
FontAwesomeModule
],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule { }
Tie the icon to the property in your component
src/app/app.component.ts
:
import { Component } from '@angular/core';
import { faCoffee } from '@fortawesome/free-solid-svg-icons';
@Component({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
faCoffee = faCoffee;
}
Use the icon in the template
src/app/app.component.html
:
<fa-icon [icon]="faCoffee"></fa-icon>
Here's a StackBlitz Starter Sample on how to display Solid, Regular, and Brand icons using the Icon Library.
You can find examples in the projects/demo
directory. You can follow the docs to run the demo app on your own machine.
angular-fontawesome
is a product of the community, you can take a look at the developer docs to find about more on how to contribute back to the project.
The following contributors have either helped to start this project, have contributed code, are actively maintaining it (including documentation), or in other ways being awesome contributors to this project. We'd like to take a moment to recognize them.
If we've missed someone (which is quite likely) submit a Pull Request to us and we'll get it resolved.
The Font Awesome team:
FAQs
Angular Fontawesome, an Angular library
The npm package @devoto13/angular-fontawesome receives a total of 2 weekly downloads. As such, @devoto13/angular-fontawesome popularity was classified as not popular.
We found that @devoto13/angular-fontawesome demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.