Swati Thakur
Swati Thakur

Reputation: 11

Custom component data is not displaying inside cxOutletPos

My Custom component data is not displaying inside cxOutletPos. No issue with "static html code" inside cxOutletPos, It is working displaying properly.

<ng-template cxOutletRef="cx-footer" cxOutletPos="before">
    <h1>welcome</h1>
    <app-custom-header></app-custom-header>
</ng-template>

Upvotes: 1

Views: 289

Answers (1)

i042416
i042416

Reputation: 366

I don't think this is a Spartacus issue, as I tried your code, and in my case the custom component could also be displayed correctly in the outlet. Please refer to my test result. I am using Spartacus 2.1.0. Which version are you using?

enter image description here enter image description here

enter image description here

Upvotes: 1

Related Questions