Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Select some icons (use an object, not an array)
const icons = {
Camera,
Heart,
Github,
Trash2,
Send,
Moon,
Sun,
Plus,
Menu
};
@NgModule({
imports: [FeatherModule.pick(icons)],
exports: [FeatherModule]
})
export class IconsModule { }
Sun,
Terminal,
Tag,
Watch,
X,
XCircle,
XSquare,
};
@NgModule({
declarations: [
IconComponent,
],
imports: [
CommonModule,
FeatherModule.pick(icons),
],
exports: [
IconComponent,
FeatherModule,
],
})
export class IconsModule { }
ChevronRight,
Minus,
Image,
Type,
Circle,
Hash,
ChevronsRight,
Columns,
GitMerge,
AlertCircle,
File,
Users
};
@NgModule({
imports: [FeatherModule.pick(icons)],
exports: [FeatherModule]
})
export class IconsModule { }