diff --git a/modules_dart/payload/hello_world/web/index.dart b/modules_dart/payload/hello_world/web/index.dart index d6d3cfe423..7f4c980d9f 100644 --- a/modules_dart/payload/hello_world/web/index.dart +++ b/modules_dart/payload/hello_world/web/index.dart @@ -17,7 +17,7 @@ class GreetingService { @Directive(selector: "[red]") class RedDec { RedDec(ElementRef el, Renderer renderer) { - renderer.setElementStyle(el, "color", "red"); + renderer.setElementStyle(el.nativeElement, "color", "red"); } }