Timeline Module missing module export #10205
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Plunkr Case (Bug Reports)
Reproduction case : https://stackblitz.com/edit/github-f6xfzg?file=src/app/app.component.ts
Current behavior
When importing the
TimelineModule
only, thecontent
,opposite
andmarker
can't be customized.Expected behavior
The TimelineModule should be customizable.
What is the motivation / use case for changing the behavior?
I want to use the
TimelineModule
independently.Additionnal information
I went through the code of the
TimelineModule
and noticed that the module doens't exportsSharedModule
like other modules (eg.CardModule
).I followed the documentation and the sample code imports both
TimelineModule
andCardModule
, which one of them exportsSharedModule
so we can use thepTemplate
directive.CardModule
: https://github.com/primefaces/primeng/blob/master/src/app/components/card/card.ts#L104TimelineModule
: https://github.com/primefaces/primeng/blob/master/src/app/components/timeline/timeline.ts#L87On the other hand, if you only want to import the
TimelineModule
, thepTemplate
directive isn't recognized and the<ng-template>
wont work properly.I can open a PR to add the
SharedModule
export on theTimelineModule
is you want.The text was updated successfully, but these errors were encountered: