Consider the following HTML snippet:
<p id="message" ng-show="something"></p>
As the page loads, the #message
element may be populated with text from an AJAX request.
I want to show or hide #message
based on whether it has content or not.
Something similar to:
<p id="message" ng-show="self.text != ''"></p> <!--This code is not functional as-is-->