p.location-badge. exported from angular2/directives defined in angular2/src/core/directives/ng_class.ts (line 15) :markdown Common directives shipped with Angular. .l-main-section h2 Annotations .l-sub-section h3.annotation Directive pre.prettyprint code. @Directive({ selector: '[ng-class]', lifecycle: [LifecycleEvent.DoCheck, LifecycleEvent.OnDestroy], properties: ['rawClass: ng-class', 'initialClasses: class'] }) .l-main-section h2 Members .l-sub-section h3 constructor pre.prettyprint code. constructor(_iterableDiffers: IterableDiffers, _keyValueDiffers: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer) :markdown .l-sub-section h3 initialClasses :markdown .l-sub-section h3 rawClass :markdown .l-sub-section h3 doCheck pre.prettyprint code. doCheck() :markdown .l-sub-section h3 onDestroy pre.prettyprint code. onDestroy() :markdown