Hi Team,
I attached my project with this question.
Can you look at the problem of anchor giving the error "Property 'nativeElement' is missing in type 'HTMLButtonElement' but required in type 'ElementRef<any>'"
StockBlitz also working fine. Only one doubt is Angular CLI version.
https://stackblitz.com/edit/angular-5yvop3-ddr4c8?file=app%2Fapp.component.ts
I'm using Angular CLI v12
Can you check the attached project and solve the issue!
<div class="example-config">
<button #anchor (click)="onToggle()" class="k-button">
{{ toggleText }} Popup
</button>
</div>
<kendo-popup [anchor]="anchor" (anchorViewportLeave)="show = false" *ngIf="show">
<div class="content">
<!-- User-defined content -->
Popup content.
</div>
</kendo-popup>
Regards,
Srinivas M.P.