I have an If condition in html to check permission to access a particular page :
*ngIf="permission?.product-report?.list_product_report"
product-report is a static name which gives directly to the condition
When I execute it, got an error as below:
Property 'report' does not exist on type 'ProductComponent'.
Why this error occurs ? Someone please help me..