title: how to use [disabled] with two options in ionic angular
body: <p>this is my page.html:</p>
  <pre><code>&lt;ion-content *ngIf=&quot;charged&quot;&gt;
  </code></pre>
    
      <strong> Id ordine: </strong>{{order.id_acg}}
      
        Peso articolo(g): 
        
      
      
        Altezza(cm): 
        
      
      
        Larghezza(cm): 
        
        
      
      
        lunghezza(cm): 
        
        
      
  <pre><code>&lt;ion-list *ngFor=&quot;let riga of order.righe&quot;&gt;
    &lt;ion-item&gt;
      &lt;ion-label&gt;Riga da preparare:&lt;strong&gt;{{riga.idRiga}}&lt;/strong&gt; &lt;/ion-label&gt;
      &lt;ion-checkbox [(ngModel)]=&quot;riga.checked&quot; name=&quot;id_riga&quot;  value=&quot;option&quot; (click)=&quot;onChange(option)&quot;&gt;&lt;/ion-checkbox&gt;
    &lt;/ion-item&gt;
    
  &lt;/ion-list&gt;
  &lt;ion-button color=&quot;success&quot; type=&quot;submit&quot; expand=&quot;block&quot; [disabled]=&quot; !f.valid &amp;&amp; checkedItems.length &lt;1 &quot; &gt;Crea spedizione
  &lt;/ion-button&gt;
  </code></pre>
    
  <p><code> &lt;ion-button color=&quot;success&quot; type=&quot;submit&quot; expand=&quot;block&quot; [disabled]=&quot; !f.valid &amp;&amp; checkedItems.length &lt;1 &quot; (* &lt;== do something like that*)&gt; Crea spedizione &lt;/ion-button&gt;</code></p>
  <p>i want the confirm Button enable only if all inputs are compiled and almost one checkbox is checked, i know to do that but separate, not together. thanks y'all!!</p>
  <p>UPDATE: This is the form into the  preview ion-content:</p>
  <pre><code>  &lt;form #f=&quot;ngForm&quot; (ngSubmit)=&quot;onUpdate()&quot; class=&quot;ion-text-center ion-margin-bottom ion-margin-top&quot;&gt;
  &lt;ion-card-title&gt;&lt;strong&gt; Id ordine: &lt;/strong&gt;{{order.id_acg}}&lt;/ion-card-title&gt;
  &lt;ion-item&gt;
    &lt;ion-label&gt;Peso articolo(g): &lt;/ion-label&gt;
    &lt;ion-input required type=&quot;number&quot; name=&quot;peso&quot; [(ngModel)]=&quot;order.peso&quot; placeholder=&quot;es: 1500&quot;&gt;&lt;/ion-input&gt;
  &lt;/ion-item&gt;
  &lt;ion-item&gt;
    &lt;ion-label&gt;Altezza(cm): &lt;/ion-label&gt;
    &lt;ion-input required type=&quot;number&quot; name=&quot;altezza&quot; [(ngModel)]=&quot;order.altezza&quot; placeholder=&quot;es: 0.60&quot;&gt;&lt;/ion-input&gt;
  &lt;/ion-item&gt;
  &lt;ion-item&gt;
    &lt;ion-label&gt;Larghezza(cm): &lt;/ion-label&gt;
    &lt;ion-input required type=&quot;number&quot; name=&quot;larghezza&quot; [(ngModel)]=&quot;order.larghezza&quot; placeholder=&quot;es: 0.30&quot;&gt;
    &lt;/ion-input&gt;
  &lt;/ion-item&gt;
  &lt;ion-item&gt;
    &lt;ion-label&gt;lunghezza(cm): &lt;/ion-label&gt;
    &lt;ion-input required type=&quot;number&quot; name=&quot;lunghezza&quot; [(ngModel)]=&quot;order.lunghezza&quot; placeholder=&quot;es: 0.20&quot;&gt;
    &lt;/ion-input&gt;
  &lt;/ion-item&gt;
  &lt;ion-list *ngFor=&quot;let riga of order.righe&quot;&gt;
    &lt;ion-item&gt;
      &lt;ion-label&gt;ID Riga da preparare: &lt;strong&gt; {{riga.idRiga}}&lt;/strong&gt; &lt;/ion-label&gt;
      &lt;ion-checkbox [(ngModel)]=&quot;riga.checked&quot; name=&quot;id_riga&quot;  value=&quot;option&quot; (click)=&quot;onChange(option)&quot;&gt;&lt;/ion-checkbox&gt;
    &lt;/ion-item&gt;
    
  &lt;/ion-list&gt;
  &lt;ion-button color=&quot;success&quot; type=&quot;submit&quot; expand=&quot;block&quot; [disabled]=&quot; !(f.valid &amp;&amp; checkedItems.length &gt; 1)&quot; &gt;Crea spedizione
  &lt;/ion-button&gt;
  </code></pre>