Relative Content

Tag Archive for angularstorybook

How to add customisable ng-content in a Storybook story in Angular

I’ve got a component for a badge where the text displayed in the badge is done with ng-content. I trying to create a Storybook story for this where I want the text in the badge to be customisable when viewing the story.
I’ve tried following the example mentioned here, but I might be doing something wrong. I moved from Storybook v6 to v8 and can’t figure it out.