Posted on: 4/10/2015 1:47:38 PM | Views : 958

Hello,
I am Unable to disable fields based upon the company codes. I can hide them successfully using this code:
ng-hide="(company.Code == '0001' || company.Code == '0002' )"
but this doesn't disable fields.
ng-disabled="(company.Code == '0001' || company.Code == '0002' )"
The reason I prefer to use disabled vs hide is the alignment of the fields is messed up when using ng-hide/show. They show up all over, one on top with a blank space to the right, the other one on the bottom with a blank space on left etc.  Using ng-disabled attribute, I can at least keep them all aligned except for the fields that don't relate to a certain company won't be enabled for editing.
Thanks

Go to the complete details ...