Created
February 29, 2016 11:21
-
-
Save nire0510/751b156d954d32569800 to your computer and use it in GitHub Desktop.
Ember helper: pretty log of JSON object
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 Ember from 'ember'; | |
export function logJson(params/*, hash*/) { | |
console.log(params[0].toJSON()); | |
} | |
export default Ember.Helper.helper(logJson); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment