NgHideDirective class
The ngHide directive shows or hides the given HTML element based on the expression provided to the ngHide attribute. The element is shown or hidden by changing the removing or adding the ng-hide CSS class onto the element.
@NgDirective( selector: '[ng-hide]', map: const {'ng-hide': '=>hide'} ) class NgHideDirective { static String NG_HIDE_CLASS = 'ng-hide'; dom.Element element; NgHideDirective(dom.Element this.element); set hide(value) { if (toBool(value)) { element.classes.add(NG_HIDE_CLASS); } else { element.classes.remove(NG_HIDE_CLASS); } } }
Static Properties
String NG_HIDE_CLASS #
static String NG_HIDE_CLASS = 'ng-hide'