@albank/ng-icons
v0.0.30
Published
First, install @albank/ng-icons from npm:
Downloads
137
Readme
ng-icons
First, install @albank/ng-icons from npm:
npm install @albank/ng-iconsThen need to register in module
import { IconsModule, IconsRegistry, iconCall, iconApi } from '@albank/ng-icons';
@NgModule({
declarations: [...],
imports: [..., IconsModule],
providers: [...],
bootstrap: [...],
})
export class AppModule {
constructor(public albankIconsRegistry: IconsRegistry) {
this.albankIconsRegistry.registerIcons([iconApi, iconCall]);
}
}Now registred icons are available in declarated components of module
<albank-icon name="api" width="20" height="20"></albank-icon>
<albank-icon name="call" width="36" height="36"></albank-icon>Icons use an snake case naming convention(AebLogo will be aeb_logo). Size has props width and height(do not send 'px' string). Color can be changed by custom styles(Change color is problematic and depends on input svg).
