how to use fa-icon in angular
"apps": [
{
"root": "src",
"outDir": "dist",
....
"styles": [
"styles.css",
"../node_modules/bootstrap/dist/css/bootstrap.css",
"../node_modules/font-awesome/css/font-awesome.css" // -here webpack will automatically build a link css element out of this!?
],
...
}
]
],
import { library } from '@fortawesome/fontawesome-svg-core';
import { fas } from '@fortawesome/free-solid-svg-icons';
import { far } from '@fortawesome/free-regular-svg-icons';
library.add(fas, far);
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 { }
Also in JavaScript:
- regular expression search for any character until Space
- Iterate with JavaScript For Loops
- ngchange angular 8
- ajax calls
- filereader javascript example
- javascript toggle variable
- javascript pass this to callback
- what is pug template engine
- html navbar dropdown bootstrap
- how can we take selected index value of dropdown in javascript
- react i18n with parameeter
- convert number to indian rupee format in javascript
- jquery select option by value
- javascript add commas to number
- javascript every other element in array
- vs code how separate one line to multilines
- include jquery
- mongoose setup
- append rotated triangle in anchor tag
- vue js default props
- compare objects in javascript
- how to solve Could not write JSON: Infinite recursion (StackOverflowError)
- aws amplify angular example
- how to get local storage value in javascript