
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
angular-font-awesome
Advanced tools
Compact FontAwesome library ready to be used with Angular 2 & 4. Formerly known as angular2-font-awesome
Simple, easy to use Angular 2 & 4 component to manage Font Awesome icons.
Install Packages
npm install --save font-awesome angular-font-awesome
Import the module:
//...
import { AngularFontAwesomeModule } from 'angular-font-awesome/angular-font-awesome';
@NgModule({
//...
imports: [
//...
AngularFontAwesomeModule
],
//...
})
export class AppModule { }
If you're using Angular CLI, add the font-awesome CSS to styles
inside the angular-cli.json
"styles": [
"styles.css",
"../node_modules/font-awesome/css/font-awesome.css"
],
NOTE: If using SCSS preprocessor just change the css
for scss
If you're not using the CLI, import the stylesheet to your index.html
file
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
To use the component you can choose between these 2 selectors: <ng2-fa></ng2-fa>
, <fa></fa>
, <ng4-fa><ng4-fa>
, or <ng-fa><ng-fa>
.
Name | Type | Options | Optional |
---|---|---|---|
name | String | F-A Icons | No |
size | String | lg, 2x, 3x, 4x, 5x | Yes |
fixed | Boolean | `true | false` |
animation | String | `spin | pulse` |
rotate | `Number | String` | `90 |
inverse | Boolean | `true | false` |
Example Use
<fa name="cog" animation="spin"></fa>
directive
optionFAQs
Compact FontAwesome library ready to be used with Angular.
The npm package angular-font-awesome receives a total of 8,689 weekly downloads. As such, angular-font-awesome popularity was classified as popular.
We found that angular-font-awesome 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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.