Skip to content

Commit f62befa

Browse files
committed
fix: Fix Lucide icons import in NotFound component
- Import LucideAngularModule instead of icon data directly - Expose icon references as component properties - Fixes NG1010 compilation error
1 parent 6d77429 commit f62befa

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/app/pages/not-found/not-found.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
import { Component } from '@angular/core';
22
import { RouterLink } from '@angular/router';
3-
import { Home, ArrowLeft } from 'lucide-angular';
3+
import { LucideAngularModule, Home, ArrowLeft } from 'lucide-angular';
44
import { ButtonComponent } from '../../components/ui/button';
55

66
@Component({
77
selector: 'app-not-found',
8-
imports: [RouterLink, ButtonComponent, Home, ArrowLeft],
8+
imports: [RouterLink, ButtonComponent, LucideAngularModule],
99
templateUrl: './not-found.html',
1010
styleUrl: './not-found.css',
1111
})
1212
export class NotFoundComponent {
13+
readonly Home = Home;
14+
readonly ArrowLeft = ArrowLeft;
15+
1316
goBack(): void {
1417
window.history.back();
1518
}

0 commit comments

Comments
 (0)