Home | Twitter | LinkedIn | Consulting | About | RSS | Map
Thu, 28 Apr 2016
It is possible to use Angular to easily disable controls depending on certain conditions. A simple example follows.
HTML File |
- Lines 1-10 - Standard stuff (see previous examples)
- Line 11 - Set a checkbox to be the model
- Lines 12,15 - Notice the ng-disabled and the exclamation mark (!) indicating not.
© 2015-2017. All Rights Reserved. All original code appearing on this site is MIT Licensed unless otherwise noted.