Thursday, 3 October 2013

How can I test for an object being null inside a in AngularJS?

How can I test for an object being null inside a in AngularJS?

I have the following code in my HTML page:
xx {{ option.selectedTopic }} yy {{ (option.selectedTopic == null) }} zz
When I run my application I get the following output:
xx null yy false zz
I tried removing the paranethesis around the test but it still gives me
the same. Is there something I am missing?