@@ -11,6 +11,7 @@ import { Pipe, PipeTransform } from '@angular/core';
|
|||||||
export class UrlToStringPipe implements PipeTransform {
|
export class UrlToStringPipe implements PipeTransform {
|
||||||
|
|
||||||
transform(url: string): any {
|
transform(url: string): any {
|
||||||
|
url = decodeURIComponent(url);
|
||||||
const urlSubstrings: string[] = url.slice(1).split('/');
|
const urlSubstrings: string[] = url.slice(1).split('/');
|
||||||
const stringRepresentation =
|
const stringRepresentation =
|
||||||
urlSubstrings
|
urlSubstrings
|
||||||
|
|||||||
Reference in New Issue
Block a user