Guest User

Untitled

a guest
Dec 18th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment