Hi
i resolved yesterday, but thankx
I needed use ng-class in the place of class.
bye
Em quarta-feira, 12 de fevereiro de 2014 12h36min47s UTC-2, Diego Monteiro
escreveu:
>
> Hi,
>
> My code not set the class error in a div.
>
> somebody knows why?
>
>
> <form name="myForm" novalidate role="form">
>
> <div class="{"*error*' : myForm".credencial.$dirty
> && myForm".credencial.$invalid}">
> <label for="credencial" class="col-sm-3 control-label">Combo:</label>
> <div class="col-sm-9">
> <select name="credencial"
> ng-model="credencial"
> ng-options="cr.nome for cr in credenciais"
> required >
> <option value="">select</option>
> </select>
> </div>
> </div>
>
> </form>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.