DAM
Download

Updating

Damith E Damith e D DamithDamith E Damith e D DamithDamith E Damith e D DamithDamith E Damith e D DamithDamith E Damith e D DamithDamith E Damith e D DamithDamith E Damith e D Damith

Contribute
import {DomSanitizer} from '@angular/platform-browser';
import {Pipe, PipeTransform} from '@angular/core';

import { icons } from 'feather-icons'; // v4+

@Pipe({ name: 'feather' })
export class FeatherIconsPipe implements PipeTransform {

  constructor(private sanitizer: DomSanitizer) {}

  transform(icon: string, size: number = 24, color: string = 'inherit') {
    return this.sanitizer.bypassSecurityTrustHtml(icons[icon].toSvg({
      width: size,
      height: size,
      color: color
    }));
  }
}

Reasons Why People Love Damith

Expert
17 Years
No error
Rating
Compatibility
NDA

Used by Thousands of Companies

Damith E Damith e D DamithDamith E Damith e D Damith

Google Twitter Veu.js Stripe