1.0.2 • Published 3 years ago

ngx-icon v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

ngx-icon

An Angular service that can dynamically change the tab icon.

Usage

Import this module:

import { NgModule } from '@angular/core';

import { NgxIconModule } from 'ngx-icon';

@NgModule({
  imports: [
    //other imports
    NgxIconModule,
  ],
  ...
})
export class AppModule {}
import { Component } from '@angular/core';
import { NgxIconService } from 'ngx-icon';

@Component({
  selector: 'app-root',
  template: ``,
  styles: [],
})
export class AppComponent {
  constructor(private iconService: NgxIconService) {
    this.iconService.setIcon(`
      whatever. Relative to the index.html.
    `);
  }
}