File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 11var _ = require ( '../util' )
22var Watcher = require ( '../watcher' )
3+ var Path = require ( '../parse/path' )
34var textParser = require ( '../parse/text' )
45var dirParser = require ( '../parse/directive' )
56var expParser = require ( '../parse/expression' )
@@ -146,10 +147,12 @@ exports.$interpolate = function (text) {
146147 * so that it is easier to inspect in console.
147148 * This method assumes console is available.
148149 *
149- * @param {String } [key ]
150+ * @param {String } [path ]
150151 */
151152
152- exports . $log = function ( key ) {
153- var data = this [ key || '_data' ]
153+ exports . $log = function ( path ) {
154+ var data = path
155+ ? Path . get ( this , path )
156+ : this . _data
154157 console . log ( JSON . parse ( JSON . stringify ( data ) ) )
155158}
You can’t perform that action at this time.
0 commit comments