X Tutup
Skip to content

Commit eeb594c

Browse files
Tim Blasikegluneq
authored andcommitted
fix(dart/payload): Fix runtime error in hello_world payload app
The hello_world app used to measure Dart payload size was broken by a change in angular@7ae23ad. This breakage does not materially affect the size of the generated code, (before fix: 298819, after fix: 298825), and since it was a runtime error it was not noticed & not a problem. Update the app to work again. Closes angular#7358
1 parent 0bb10d6 commit eeb594c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules_dart/payload/hello_world/web/index.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class GreetingService {
1717
@Directive(selector: "[red]")
1818
class RedDec {
1919
RedDec(ElementRef el, Renderer renderer) {
20-
renderer.setElementStyle(el, "color", "red");
20+
renderer.setElementStyle(el.nativeElement, "color", "red");
2121
}
2222
}
2323

0 commit comments

Comments
 (0)
X Tutup