angular-challenges
angular-challenges copied to clipboard
Answer:33
Provide 2 implementations: 1st: a non secured approach to resolve 'BtnDisabledDirective' ref, because it might be undefined when injection mechanism tries to resolve it. 2nd: a secured and optimized one by using forwardRef, in order to resolve the ref of 'BtnDisabledOptimizedDirective' in cases when BtnDisabledOptimizedDirective is not yet defined.