Debug batamanjs model in view context

To inspect a model attributes binded to a dom element
$context($("#elem-id")[0]).controller.model_name.toJSON()

Original idea taken from the link below.

Bonyiii