Answer the question
In order to leave comments, you need to log in
How to deal with hard to read HTML when using angularJS?
Actually, subject, the code becomes hard to read, what to do about it?
Code example:
<input class="d-form__input-text" name="pickup__point_address" ng-model="pickup__point_address" ng-required="true" ng-focus="focusHandler($event)" ng-blur="blurHandler($event)">
<div class="d-form__error" ng-show="orderingForm.pickup__point_address.$invalid && orderingForm.pickup__point_address.$dirty"><span class="d-form__exlmark"></span> Пожалуйста, заполните поле</div>
Answer the question
In order to leave comments, you need to log in
<input class="d-form__input-text"
name="pickup__point_address"
ng-model="pickup__point_address"
ng-required="true"
ng-focus="focusHandler($event)"
ng-blur="blurHandler($event)">
<div class="d-form__error"
ng-show="orderingForm.pickup__point_address.$invalid && orderingForm.pickup__point_address.$dirty">
<span class="d-form__exlmark"></span> Пожалуйста заполните поле
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question