How do dump angular variable to log? By Oll October 20, 2016 Easiest way is to use following snippet.. console.log(angular.toJson(variable)); But in this case the scope variables are not serialized. To serialize scope etc use following snippet.. console.log(angular.mock.dump($scope)); Have fun! Read more