How do I import the tabler icons? #53
-
I've followed the instructions. The compiler is saying the icons aren't in the location. I'm using the NG modules instructions. import { NgIconsModule} from '@ng-icons/core'; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, It should just be as simple as importing the icons like this: import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { NgIconsModule } from "@ng-icons/core";
import {
tablerCircleLetterL,
tablerCircleLetterP
} from "@ng-icons/tabler-icons";
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgIconsModule.withIcons({
tablerCircleLetterL,
tablerCircleLetterP
})
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { } You should not need to deep import, just from the package: If that is not the case, let me know in case there is a bug, thanks! |
Beta Was this translation helpful? Give feedback.
Hi,
It should just be as simple as importing the icons like this:
You should not need to deep import, just from the package:
See Example CodeSandbox
If that i…