MCPcopy Create free account
hub / github.com/angular/angular / setStyles

Method setStyles

packages/core/test/acceptance/styling_spec.ts:3036–3040  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3034 }
3035
3036 setStyles() {
3037 const nativeEl = this.elementRef.nativeElement;
3038 this.renderer.setStyle(nativeEl, 'transform', 'translate3d(0px, 0px, 0px)');
3039 this.renderer.addClass(nativeEl, 'my-class');
3040 }
3041 }
3042
3043 @Component({

Callers 1

styling_spec.tsFile · 0.45

Calls 2

setStyleMethod · 0.65
addClassMethod · 0.65

Tested by

no test coverage detected