Skip to content

Instantly share code, notes, and snippets.

View MarvinZ's full-sized avatar

MarvinZ

View GitHub Profile
<!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>
[
{
"name":"Afghanistan",
"dial_code":"+93",
"code":"AF"
},
{
"name":"Aland Islands",
"dial_code":"+358",
"code":"AX"
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);
}
}