I am using below syntax ,
<span ng-repeat="item in basicProductInformation.productName">
<input ng-show="currentLoggedInCompanyId == '566019bbb356de9283ded176'" ng-class="{errElementBorder: item.valueErr && !item.value}" class="form-control input-sm" type="text" ng-model="item.value" maxlength="500" ng-readonly="ValuesReadOnly" style="height: 34px;">
<input ng-hide="currentLoggedInCompanyId == '566019bbb356de9283ded176'" ng-class="{errElementBorder: item.valueErr && !item.value}" class="form-control input-sm" type="text" ng-model="item.value" maxlength="80" ng-readonly="ValuesReadOnly" style="height: 34px;">
</span>
It is always taking maxlength of 80 after saving the changes nothing will be shown on UI for the first ng-show condition
For second input box (ng-hide) the text will be saved correctly and correctly shown on UI
Please suggest me if I did anything wrong?