ng-container Questions

4

Solved

In below sample, I have used ng-template like below and it is working fine. Sample link: click here <ng-template #template let-dataSource=""> <span *ngIf="dataSource.iconCss" cl...
Cable asked 6/12, 2018 at 5:30

3

Solved

I've got a component made of a ng-container, I would like to bind a click on it. (click) doesn't do the job. Is there another way to do it ?
Rupertruperta asked 22/11, 2019 at 10:57

1

Solved

My data model: export class Contact { constructor( public type: ContactTypes, public name: string, public link?: string ) { } } export enum ContactTypes { Address = 'address-card-o', Phone ...
Hammonds asked 17/7, 2021 at 13:12

2

Solved

I'm trying to build a simple tabs-menu in my Angular app. parant.component.html: <div> <button (click)="selectTab(1)">Tab1</button> <button (click)="selectTab(2)">Tab2&l...
Business asked 4/12, 2019 at 12:24

2

Solved

I want to generate a reactive form from the tree structure. Here is the code that creates the form items (form groups and controls). For the controls nested in form group it I use a recursive temp...
1

© 2022 - 2024 — McMap. All rights reserved.