title: Using value of ng-model in ng-if
body: <p>I have a text box where I enter an idNumber. I want to check if that id number appears in my table. If it does, I want to add a glyphicon to that row.</p>
  
  <p>Now, my problem is that I don't know how to access <code>ng-model="idNumber"</code> from ng-if.</p>
  
  <p>I try using <code>ng-if="data.id== {{idNumber}}"</code> but that does not work.</p>
  
  <pre><code>        &lt;div class="container" id="inputDiv"&gt;
              &lt;div&gt;
                  &lt;input type="text" class="form-control" ng-model="idNumber"&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div class="container col-md-12"&gt;
              &lt;table class="table table-hover"&gt;
                  &lt;thead&gt;
                  &lt;tr&gt;
                      &lt;th&gt;Id number&lt;/th&gt;
                      &lt;th&gt;Name&lt;/th&gt;
                      &lt;th&gt;Type&lt;/th&gt;
                      &lt;th&gt;Status&lt;/th&gt;
                  &lt;/tr&gt;
                  &lt;/thead&gt;
                  &lt;tbody&gt;
                  &lt;tr ng-repeat="data in idData"&gt;
                      &lt;td&gt;{{data.id}}&lt;/td&gt;
                      &lt;td&gt;{{data.name}}&lt;/td&gt;
                      &lt;td&gt;{{data.dokumenttype}}&lt;/td&gt;
                      &lt;td&gt;
                        &lt;span ng-if="data.id== {{idNumber}}"&gt;
                          &lt;span class="glyphicon glyphicon-asterisk"&gt;&lt;/span&gt;
                        &lt;/span&gt;
                      &lt;/td&gt;                    
                  &lt;/tr&gt;
                  &lt;/tbody&gt;
              &lt;/table&gt;
          &lt;/div&gt;
  </code></pre>