Skip to content

Commit 014a28f

Browse files
Tim Blasimhevery
authored andcommitted
fix(examples): Fix type registration in hello_world
Fixing `registerType` call for `Content` in index_static.js. Closes angular#991
1 parent 153cee1 commit 014a28f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/examples/src/hello_world/index_static.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ function setup() {
152152
});
153153

154154
reflector.registerType(Content, {
155-
"factory": (lightDom, el) => new Content(lightDom, el),
156-
"parameters": [[DestinationLightDom], [NgElement]],
157-
"annotations" : [new Decorator({selector: '[content]'})]
155+
"factory": (lightDom, el, selector) => new Content(lightDom, el, selector),
156+
"parameters": [[DestinationLightDom], [NgElement], [String]],
157+
"annotations" : []
158158
});
159159

160160
reflector.registerType(StyleInliner, {

0 commit comments

Comments
 (0)