In my angular10 app i am implementing ng-bootstrap collapse.
component.html
<div class="op-bg-dark-blue op-font-12 darkblue-block-padding" (click)="collapse.toggle()"
[attr.aria-expanded]="!isCollapsed" aria-controls="collapseExample">
<span class="mb-0 op-text-white font-bold">Total Bid Rate</span>
<span class="mb-0 float-right op-text-white font-bold">105,328 <i class="fa fa-angle-right ml-1">
</i></span>
</div>
<div #collapse="ngbCollapse" [(ngbCollapse)]="isCollapsed">
</div>
component.ts
isCollapsed = false;
but the problem is that when i click on my div to open callapse so it is giving an error
_r0.toggle is not a function
How can i fix this?