[Fixed] How to add html element in to Angular Component


I have my custom component like this

  selector: 'panel-top-page',
  template: `
    <div class="border-radius" nz-row [nzGutter]="5">

export class PanelTopPageComponent extends BaseValueAccessor implements OnInit {

  ngOnInit(): void {

And I use like this

 <panel-top-page nz-col nzFlex="auto" nz-row [nzGutter]="5">
     <div>Here I want to add my html element</div>

And my result don’t show and element inside
Result Image


Add <ng-content></ng-content>.


<div class="border-radius" nz-row [nzGutter]="5">

Leave a Reply

(*) Required, Your email will not be published