python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Adding Dynamic Content inside <ng-template>
<ng-template #reuse>
<div>Hello World</div>
</ng-template>
<ng-container [ngTemplateOutlet]="reuse"></ng-container>
<ng-container [ngTemplateOutle...
Ramya Balasubramanian
Votes: 0
Answers: 2
Styling ng-content in angular 2
I am trying to style this ng-content in template.html:
<ng-content select="span.blue-label.button-content"></ng-content>
template css:
:host ::ng-deep .button-content.blue-label ...
UntitledUserForEach
Votes: 0
Answers: 1
In Angular, how to do Content Projection over the list of children?
I have a component that should accept arbitrary amount of child components of known type and render them with additional wrapper in an *ngFor. Alternatively, can I pass and render a list of <ng-tem...
Ivan Koshelev
Votes: 0
Answers: 2
How to pass multiple ng-templates to ng-content?
I am using Swiper's swiper component and the way you can display slides is using ng templates with SwiperSlide directive on it. I want to make my swiper component reusable and use that component inste...
vazha abdushelishvili
Votes: 0
Answers: 0