How to Inject directive in component with default value? (to avoid NullInjectorError)

前端 未结 0 543
予麋鹿
予麋鹿 2020-12-09 14:43

I want to have reusable component which works regardless of if its ancestor have customRootDirective or not. My component:

@Component({
  selector: \'componen         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题