Top "Angular2-ngcontent" questions

Angular 2 Template as a parameter to component

My simplified goal is to build a component which is a list with item template. E.g.: <list>…

angular typescript angular2-ngcontent
How to conditionally wrap a div around ng-content

depending on the value of a (boolean) class variable I would like my ng-content to either be wrapped in a …

angular angular-ng-if angular2-ngcontent
Is there a way to use css in ng-content inside an Angular2 component?

I tried to include css for children element included in a component via ng-content. It seems to be not implemented …

css angular styles angular2-ngcontent
conditional ng-content in angular 4/5

Hi I want some conditional implementation of ng-content e.g. <div> <ng-content select="[card-icon]"></ng-content&…

angular angular2-ngcontent
Accessibility parent component from child component when parent component using ng-content Angular

I'm trying to access parent component from child component using dependence injection. It works, I can access to parent to …

angular angular-components angular2-ngcontent
Capture event on ng-content in Angular 2

I am going through this tutorial to comprehend angular 2's ng-content. I want to capture event which is triggered on …

angular angular2-ngcontent
ng-content in for loop

I'm trying to create a tab component using bootstrap. <app-tabs> <app-tab [label]="'label1'">Description 1</…

angular angular2-ngcontent