ADD new story-level decorators to angular di stories

This commit is contained in:
Tom Coleman 2019-03-03 11:04:35 +11:00
parent dc401dd810
commit 4753e202d3

View File

@ -9,10 +9,15 @@ storiesOf('Custom|Dependencies', module)
title: 'Component dependencies',
},
}))
.addDecorator(withKnobs)
.add('inputs and inject dependencies with knobs', () => ({
component: DiComponent,
props: {
title: text('title', 'Component dependencies'),
},
}));
.add(
'inputs and inject dependencies with knobs',
() => ({
component: DiComponent,
props: {
title: text('title', 'Component dependencies'),
},
}),
{
decorators: [withKnobs],
}
);