title: How get text in input type="number" angular
body: <p>I want to get Text in input type="numer".</p>
  
  <pre><code>&lt;input type="number" class="form-control" [(ngModel)]="home" name="home" required min="0" step="1"&gt;
  </code></pre>
  
  <p>I want:</p>
  
  <ol>
  <li>Show one message when the field is empty</li>
  <li>Show another message when the input in the field is not valid</li>
  </ol>
  
  <p>in my ts class  I do:</p>
  
  <pre><code>if(this.home==null){
  //show message empy field
  }
  </code></pre>
  
  <p>the problem is show the second message because in my formControll (when the input is 22...) it gives me that this.home is null and so it gives me the first error. How can access to text in input type numer or what I have to do?
  Anyone can help me? (I use form template driven)</p>