Created
November 22, 2015 09:10
-
-
Save atsu85/b6bdf1892f9d682e9dff to your computer and use it in GitHub Desktop.
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 {valueConverter} from "aurelia-binding"; | |
/** useful for debugging */ | |
@valueConverter('json') | |
export class ToJsonValueConverter { | |
toView(value: any) { | |
return value ? JSON.stringify(value) : value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment