Sasha
Member since Aug 10, 2022
- Profile: /members/14576-sasha.htm
- Comments: 3
Recent Blog Comments By Sasha
-
Rendering A TemplateRef As A Child Of The Body Element In Angular 9.0.0-rc.5
Posted on Aug 10, 2022 at 11:17 AM
Just want to make one note after today's findings. You need this: embeddedViewRef.detectChanges() if you have *ngIf, ng-container and etc. within your template. Otherwise the content won't be generated so far and you will get an empty markup with "ng-" placeholders.... read more »
-
Rendering A TemplateRef As A Child Of The Body Element In Angular 9.0.0-rc.5
Posted on Aug 10, 2022 at 11:13 AM
Allright - I made it! I used your approach + passing templateref into component. This way, inside the component which received the references I was able to render the template. Please, keep in mind one useful thing: if you need to process data in your template - you can use second parameter ... read more »
-
Rendering A TemplateRef As A Child Of The Body Element In Angular 9.0.0-rc.5
Posted on Aug 10, 2022 at 11:12 AM
I've tried to use this for my situation, but it does not work. What I'm trying to achieve... I have a Google Map component created dynamically. I need to pass through a popup template, which needs to be rendered when clicked on the created pin (also some variables passed through too need to ... read more »