angularjs - ng-class does is not triggered on invalid form field -



angularjs - ng-class does is not triggered on invalid form field -

i testing angular-fcsa-number directive, during process wrapper element of input field not assigned 'has-error' class though field invalid. seems me ng-class not recognize field invalid. doing wrong here?

<form id="form1" runat="server" name="form1"> <div class="form-group" data-ng-class="{ 'has-error': form1.fcsaplugin.$invalid }"> <label>fcsa number</label> <input type="text" name="fcsaplugin" class="form-control" data-ng-model="action.fv10036" fcsa-number /> </div> </form>

as works when remove runat="server" attribute. chance using asp.net masterpages. had tried inspect html, check name of form in rendered html. if using masterpage in asp.net name of form aspnetform, data-ng-class should be

data-ng-class="{ 'has-error': aspnetform.fcsaplugin.$invalid }"

angularjs ng-class

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -