I'm trying to manipulate the view of a web messaging system and the default view is a blank object, {}
. I used an ng-show="data.currentView == {}"
in my AngularJS script to check if it is currently the default view, but it never showed. Then I tried this in my Javascript Console in Chrome:
var data = {}
console.log(data == {})
//Logs false
console.log(data === {})
//Logs false
Why is that statement returning false?