title: Angular, Disable button validator
body: <p>I hope you have a great day.</p>
  <p>I'm getting stuck within creating a validator funciton. I want to disable a button if the text area is empty or if it contains &quot;\n\n/Admin&quot;.</p>
  <p>What I have done now is :</p>
  <p>.html file</p>
  <pre><code>    &lt;textarea class=&quot;g-input form-control&quot; formControlName=&quot;messageBody&quot; id=&quot;messageBody&quot; tabindex=&quot;0&quot; rows=&quot;4&quot;&gt;
      &lt;/textarea&gt;
  
      &lt;button data-color=&quot;purple&quot; type=&quot;submit&quot; [disabled]=&quot;&quot;&gt;
        &lt;div&gt;Send&lt;/div&gt;
      &lt;/button&gt;
  </code></pre>
  <p>.ts file</p>
  <pre><code>  initForm() {
  this.form = this.fb.group({
    messageBody: [`\n\n/admin`, Validators.required, ]
  });
  </code></pre>
  <p>I would really apprecaite if someone could help. Have a wounderful day.</p>