title: ng-if and ng-show in my Ionic application, neither works
body: <p>The html code goes something like this:</p>
  
  <pre><code>&lt;div ng-if="name=='John'"&gt;
  &lt;div class="item item-avatar"&gt; &lt;img ng-src="john.jpg"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div ng-if="name=='Margaret'"
  &lt;div class="item item-avatar"&gt; &lt;img ng-src="margaret.jpg"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Instead of ng-if, I've tried using ng-show as well. Neither worked. Both John as well as Margaret showed on the page no matter which I used. I tried with ng-switch also.</p>
  
  <p>The variable 'name' I initialized earlier on the same HTML file as:</p>
  
  <pre><code>&lt;a class="item item-avatar item-icon-right" ng-init="name = 'John'" href = "#/Page3"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Clicking on the above line leads to Page3 where I need to display either John or Margaret depending on the value of 'name'.</p>
  
  <p>Is the syntax wrong or something, because that could be very well possible. I'm new to Ionic and AngularJS.</p>