I can't make an input be required with Angular2
<p>I'm starting with Angular and I'm on a project where I have to validate the inputs so they can't be left clear, every input must me completed.</p>

<p>It's an html and we have a .ts file.</p>

<p>This is an extract of the html:</p>

<pre class="lang-html prettyprint-override"><code>&lt;div class="form-group"&gt;
    &lt;input  type="text"
            class="form-control"
            id="factory"
            [(ngModel)]="factory.company"&gt;
&lt;/div&gt;
</code></pre>

<p>I need to validate this factory input but when I was watching tutorials all I needed to do was to write 'required' inside the <code>&lt;input&gt;</code> and that was it but I had a <code>&lt;form&gt;</code> and every input was inside this form, and this html doesn't have a <code>&lt;form&gt;</code> and when I put one the design was horrible and I couldn't work.</p>