title: How to check if a input field has a value in the controller using AngularJS
body: <p>I'm quite simply trying to find out how I can retrieve the scopes information to see if it has a value or not in the controller. </p>
  
  <p>I need to be able to write an if statement that says if this text input field is filled do this... if else do something different. </p>
  
  <pre><code>&lt;form name="deadlineForm"&gt;
      &lt;div class="app-select-date"&gt;
          &lt;label for="deadline"&gt;Select deadline:&lt;/label&gt;
          &lt;input pickadate ng-model="deadline" format="dd/mm/yyyy" placeholder="Select deadline"/&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>What is the best way about writing this code in the controller?</p>