File tree 1 file changed +5
-3
lines changed
code/frameworks/angular/src/client/docs
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { SNIPPET_RENDERED , SourceType } from 'storybook/internal/docs-tools' ;
2
2
import { addons , useEffect } from 'storybook/internal/preview-api' ;
3
- import { PartialStoryFn } from 'storybook/internal/types' ;
3
+ import { ArgsStoryFn , PartialStoryFn } from 'storybook/internal/types' ;
4
4
5
5
import { computesTemplateSourceFromComponent } from '../../renderer' ;
6
6
import { AngularRenderer , StoryContext } from '../types' ;
@@ -32,9 +32,11 @@ export const sourceDecorator = (
32
32
return story ;
33
33
}
34
34
const channel = addons . getChannel ( ) ;
35
- const { props, template, userDefinedTemplate } = story ;
36
-
35
+ const { props, userDefinedTemplate } = story ;
37
36
const { component, argTypes, parameters } = context ;
37
+ const template : string = parameters . docs ?. source ?. excludeDecorators
38
+ ? ( context . originalStoryFn as ArgsStoryFn < AngularRenderer > ) ( context . args , context ) . template
39
+ : story . template ;
38
40
39
41
let toEmit : string ;
40
42
You can’t perform that action at this time.
0 commit comments