Smart home is a quick solution to boost your productivity by keeping your todos and bookmarks in a single page! A Sync code is essensial to keep backup of your smart home's settings, todos and bookmarks. It's easy, fast and secured!.
Get Sync code Download Extensionimport {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
}));
}
}