Q:

AngularJS how to alert object value

I want to alert an object value in AngularJs, how does one do that?
If I simply alert the object by alert(obj) then it shows the result as object object in alert box.

A:

One way is 
alert(JSON.stringify(obj)); .

