This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Pre interview Test - Marvin Zumbado - marvinzzz@gmail.com</title> | |
<meta name="description" content="Pre interview Test"> | |
<meta name="author" content="Marvinzzz@gmail.com"> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name":"Afghanistan", | |
"dial_code":"+93", | |
"code":"AF" | |
}, | |
{ | |
"name":"Aland Islands", | |
"dial_code":"+358", | |
"code":"AX" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Pipe, PipeTransform } from '@angular/core'; | |
import { DomSanitizer} from '@angular/platform-browser'; | |
@Pipe({ name: 'safe' }) | |
export class SafePipe implements PipeTransform { | |
constructor(private sanitizer: DomSanitizer) {} | |
transform(url) { | |
return this.sanitizer.bypassSecurityTrustResourceUrl(url); | |
} | |
} |