test(ivy): update e2e tests to use Renderer2 instead of Renderer (#28558)
PR Close #28558
This commit is contained in:

committed by
Matias Niemelä

parent
6709db9677
commit
0e6f799aec
@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {Component, Directive, ElementRef, Injectable, Renderer} from '@angular/core';
|
||||
import {Component, Directive, ElementRef, Injectable, Renderer2} from '@angular/core';
|
||||
|
||||
// A service available to the Injector, used by the HelloCmp component.
|
||||
@Injectable()
|
||||
@ -20,8 +20,8 @@ export class GreetingService {
|
||||
export class RedDec {
|
||||
// ElementRef is always injectable and it wraps the element on which the
|
||||
// directive was found by the compiler.
|
||||
constructor(el: ElementRef, renderer: Renderer) {
|
||||
renderer.setElementStyle(el.nativeElement, 'color', 'red');
|
||||
constructor(el: ElementRef, renderer: Renderer2) {
|
||||
renderer.setStyle(el.nativeElement, 'color', 'red');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user