title: Angularjs: Condition statement based on current_user
body: <p>There's something I've been stuck on for a couple days now. I would like to display an item based on the current user (id).</p>
  
  <p>For an example:</p>
  
  <pre><code>&lt;!-- if current user has already 'liked' this post --&gt;
      Show 'UnLike' button
  &lt;!-- else --&gt;
      Show 'Like' button
  &lt;!-- end --&gt;
  </code></pre>
  
  <p><strong>How do you use conditional statements based on the current user's id in Angularjs?</strong></p>
  
  <p>I'm using Rails as my backend along with Devise, if it helps..</p>