Update Content-Projection-Service.md

pull/3545/head
Mehmet Erim 5 years ago committed by GitHub
parent c3cfdf2058
commit 30622bb8f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -31,7 +31,7 @@ const strategy = PROJECTION_STRATEGY.AppendComponentToBody(
{ someOverlayProp: "SOME_VALUE" }
);
const componentRef = this.ContentProjectionService.projectContent(strategy);
const componentRef = this.contentProjectionService.projectContent(strategy);
```
In the example above, `SomeOverlayComponent` component will placed at the **end** of `<body>` and a `ComponentRef` will be returned. Additionally, the given context will be applied, so `someOverlayProp` of the component will be set to `SOME_VALUE`.

Loading…
Cancel
Save