This file contains hidden or 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
/** | |
* @license | |
* Copyright (c) 2017-present, Luca Bertolasi. All Rights Reserved. | |
* | |
* This software is licensed under the terms of the MIT license, | |
* a copy of which can be found at https://opensource.org/licenses/MIT | |
*/ | |
function formatCurrency(amount, strToNum) { | |
// default behaviour: |
This file contains hidden or 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 { UrlSerializer, UrlTree, DefaultUrlSerializer } from '@angular/router'; | |
export class CustomUrlSerializer implements UrlSerializer { | |
parse(url: any): UrlTree { | |
const dus = new DefaultUrlSerializer(); | |
return dus.parse(unescape(url)); | |
} | |
serialize(tree: UrlTree): any { | |
const dus = new DefaultUrlSerializer(); |
OlderNewer