Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why error message is not shown
Message
 
 
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01640697
Message ID:
01640729
Views:
28
>>This is working control
>>
>>
>><input class="form-control percent-icon ng-not-empty ng-valid-min ng-valid-sm-number ng-dirty ng-valid-number ng-invalid ng-invalid-max ng-touched"
>> id="discPct" max="100" min="-100" name="discPct" placeholder="0" ng-model="currentSpecial.discPct" type="number" 
>>data-sm:number="" data-accuracy="0" style="">
>>
>>
>>and this is not working
>>
>>
>><input type="number" name="maxDaysLocal" id="maxDaysLocal" sm-focus="" min="1" max="45"
>> ng-model="currentPrefs.loclccdays" 
>>class="form-control ng-valid-min ng-valid-sm-number ng-not-empty ng-dirty ng-valid-number ng-invalid ng-invalid-max ng-touched" 
>>placeholder="0" data-sm:number="" data-accuracy="0" style="">
Those look identical to me - apart from the obvious name/id and model changes. Look at the $error object for the input control in both cases.
>
>Just a thought : you could use ng-messages/ng-message rather than the show/hide construct.

I'll read on ng-messages/ng-message because we're not using them in our app, so it's something new for me. I'll also try to examine the $error object although it's not exactly clear to me how to do it using Developers tools.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform