I get the following error while implementing ngTemplateOutlet
in my Angular code
compiler.js:2420 Uncaught Error: Template parse errors:
Parser Error: Missing expected } at column 47 in [searchListing; context: {$implicit: entityList:genericJobList,
canCreateEntity:canCreateJob, nextBookmarkList:genericNextBmJobList,'disableScroll:disableJobScroll}]
in ng:///SharedSearchModule/SearchCompareComponent.html@707:7 ("
It says the error is on line 707. My code on line 707 is the code for ngTemplateOutlet
itself
<ng-container
*ngTemplateOutlet="searchListing; context: {$implicit: entityList:genericJobList,
canCreateEntity:canCreateJob, nextBookmarkList:genericNextBmJobList,
disableScroll:disableJobScroll}">
</ng-container>
Part of ng-template is as follows:
<ng-template #searchListing let-canCreateEntity="canCreateEntity"
let-entityList="entityList" let-nextBookmarkList="nextBookmarkList"
let-disableScroll="disableScroll">
<!-- template code here -->
</ng-template>
I do not see a missing }
as per the error encountered. The props that I am passing are of types boolean(canCreateEntity, disableScroll), array of objects(entityList) and string(nextBookmarkList). I cannot provide a working example as I cannot share the full code without modifying it. Can anyone point out what the error is