Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AngularJS how to alert object value

Tags:

angularjs

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.

like image 292
Yasir Avatar asked Feb 12 '23 21:02

Yasir


1 Answers

One way is

alert(JSON.stringify(obj)); .

like image 110
Nurdin Avatar answered Feb 14 '23 10:02

Nurdin