SHARE
TWEET

Untitled

a guest Dec 18th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { CommonModule } from '@angular/common';
  2. import { NgModule } from '@angular/core';
  3. import { MatIconRegistry } from '@angular/material/icon';
  4. import { DomSanitizer } from '@angular/platform-browser';
  5.  
  6. @NgModule({
  7.   imports: [
  8.     CommonModule
  9.   ],
  10.   declarations: []
  11. })
  12. export class MaterialModule {
  13.   constructor(
  14.     private matIconRegistry: MatIconRegistry,
  15.     private domSanitizer: DomSanitizer) {
  16.     this.matIconRegistry.addSvgIcon(
  17.       'weightsolid',
  18.       this.domSanitizer.bypassSecurityTrustResourceUrl('assets/weight-solid.svg')
  19.     );
  20.   }
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top