Created
April 15, 2016 11:02
-
-
Save Kukks/7482dc6cf22dc32129fcbd333a133a2f to your computer and use it in GitHub Desktop.
Aurelia stringify value converter
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
export class StringifyValueConverter { | |
public toView( value: any ): string { | |
if ( value ) { | |
return JSON.stringify(value); | |
} else { | |
return "null object"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment