You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adam Pelle edited this page Feb 20, 2020
·
4 revisions
Best Practices
We are using react2angular lib which can expose a react component to an angular counterpart. like <StepItem step={...} /> -> <r-step-item step="step"> so we can use them in angular templates like any other directives (note it's gonna be angular component not a directive!). Though it seems very neat and easy, we need to be aware of couple practices.
Exposing typescript services to angular
With webpack we can simply export/import components or functions like this: