Ng-disable not working for submit form button HELP!


I have a problem with my submit button when i pass it to ng-disable it doesn’t work and it still able.

Here’s my HTML :

   <div class="list card">
    <div class="list" >
      <form role="form" name="auth-form" novalidate="">
        <label for="email" class="item item-input item-floating-label" style="border-left:2px solid #E0723A;">
        <span for="email" class="input-label">Pseudo ou email</span>
        <input type="text" id="email" name="email" placeholder="Pseudo ou email" required ng-model="">
      <label for="pwd" class="item item-input item-floating-label" style="border-left:2px solid #E0723A;margin-top:20px;">
        <span for="pwd" class="input-label">Mot de passe</span>
        <input type="password" id="pwd" name="pwd" placeholder="Mot de passe" required ng-model="user.pwd">
      <input type="submit" class="button button-full button-positive" id="send-form" style="margin-top:40px;background-color:#E0723A;border:none;width:100%;" value="Se connecter"  ng-disabled="auth-form.$invalid">

Inputs are empty but the button is working :frowning:

dont use hypen for form name

<form name="authForm">
   ... ng-disabled="authForm.$invalid"
1 Like

Thank’s it works :smile: