I have this code which shows the username and picture of a Facebook user when connected to this application.
 <div class="item item-avatar" ng-controller="LoginCtrl" ng-show="showProfile">
      <img src="{{user.picture}}">
        <h2>{{user.name}}</h2>
        <p>Reporter</p>
  </div>
So, if the user is logged in using Facebook with the app, the username and profile picture will show... {{user.picture}} & {{user.name}} so what I am trying to do is to show a different case where the user is not logged in... If the user is not logged in, I want to show just plain text like "No logged in user."
So tried these codes and failed to get it
 <div ng-if="user.name !== '{{user.name}}'">
      <div class="item item-avatar">
          <img src="https://media.licdn.com/mpr/mpr/p/5/005/06f/16e/232e2d4.jpg">
          <h2>No logged in user</h2>
      </div>
 </div>
 <div ng-if="user.name === '{{user.name}}'">
      <div class="item item-avatar" ng-controller="LoginCtrl" ng-show="showProfile">
          <img src="{{user.picture}}">
          <h2>{{user.name}}</h2>
          <p>Reporter Name</p>
    </div>
 </div>
AND
<div ng-repeater="user in users">
    <div>{{user.name}}</div>
    <div ng-show="isExists(user)">available
        <div class="item item-avatar" ng-controller="LoginCtrl" ng-show="showProfile">
            <img src="{{user.picture}}">
              <h2>{{user.name}}</h2>
              <p>Reporter</p>
        </div>
    </div>
    <div ng-show="!isExists(user)">No logged in user</div>
</div>
Any solution or alternative from using ng-if or ng-repeater? Not really familiar with AngularJS.

ng-ifshould be simple:<div ng-if="user.name'">(to show if the user name is set) and<div ng-if="! user.name">(to show if the user name is not set)