title: AngularJS: ngIf in array of objects with different properties
body: <p>I have some issue with ngIf directive. I tried a lot of ways to resolve it, but unfortunately failed.</p>
  
  <p>I have an array of objects with different properties. Something like this:</p>
  
  <pre><code>    object = [
      {
          name: "1",
          isNumber: true,
      },
      {
          name: "2",
          isNumber: true,
      },
      {
          name: "3",
          isNumber: true,
      },
      {
          name: "4",
          isNumber: true,
      },
      {
          name: "5",
          isNumber: true,
      },
      {
          name: "#",
          isNumber: false,
      },
      {
          name: "*",
          isNumber: false,
      }
  </code></pre>
  
  <p>I need to use ngIf on the last object with true value of isNumber property. I don't know how much objects with isNumber on true will be in my array. It can be 7 or 82. Nobody knows. Also objects with isNumber on false won't be always in my array. Sometimes array will be have only objects with isNumber on true and no objects with isNumber on false.</p>
  
  <p>How can i achieve this using ngIf?</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I have something like this:</p>
  
  <p>1, 2, 3, 4, 5, 6, 7, *, #.</p>
  
  <p>And I don't want to have "Down" button on last element with true value of isNumber property (7 in this case). Because if user moves it down, I'll have this:</p>
  
  <p>1, 2, 3, 4, 5, 6, *, 7, #. </p>
  
  <p>And it will be wrong logic.</p>
  
  <p>So, I need to use ngIf, so that I could disable this button on that element. But sometimes I can have smth like this (without extra symbols): </p>
  
  <p>1, 2, 3, 4, 5.</p>
  
  <p>And in this situation I don't need "Down" button on last element too. Because it's impossible to move last element down.</p>