NG V17: Can't bind to 'item' since it isn't a known property of 'li'. #2065
Unanswered
ajayprakashebsc
asked this question in
PrimeNG Templates
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I Purchased Poseidon template and implementing with NG V17. Getting the below error
Here is my code:
`
`<ng-container *ngFor="let item of model; let i = index;">
<li app-menuitem *ngIf="!item.separator" [item]="item" [index]="1" >
<li *ngIf="item.separator" class="menu-separator">
ERROR
lib/layout/src/lib/testmenu/testmenu.component.html:6:50 - error NG8002: Can't bind to 'item' since it isn't a known property of 'li'.
6 <li app-menuitem *ngIf="!item.separator" [item]="item" [index]="1" >
~~~~~~~~~~~~~
lib/layout/src/lib/testmenu/testmenu.component.ts:29:16
29 templateUrl: './testmenu.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TestmenuComponent.
p-menu and p-menubar is working.
Please help me
Beta Was this translation helpful? Give feedback.
All reactions