【发布时间】:2020-02-27 01:04:50
【问题描述】:
Github:https://github.com/danielhdz56/storybook-demo.git
在组件中注入服务总是会在故事书中引发错误:
Error: Can't resolve all parameters for CustomService: (?).
一个示例组件:
@Component({
selector: 'app-custom-selector',
templateUrl: './custom-selector.component.html',
styleUrls: ['./custom-selector.component.scss'],
})
export class NavigationItemComponent {
constructor(private customService: CustomService) {}
}
【问题讨论】:
-
你能把
CustomService的代码贴在这里 -
请张贴
CustomService代码,然后我们会想办法帮助您。 -
@PardeepJain 添加了 github:github.com/danielhdz56/storybook-demo.git
标签: angular storybook angular-storybook