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
Now all/most components participate in an inheritance hierarchy. They do this by declaring abstract components. This is a code small and should be avoided.
If truly necessary to share functionality, instead create a service injecting what is needed, then inject that into components. This will also make the code shorter as we no longer have to autowire a ton of unnecessary services into all components to pass to the parent.
The text was updated successfully, but these errors were encountered:
Inheritance should not be used for code sharing, instead use composition. This is a generic principle (https://en.wikipedia.org/wiki/Composition_over_inheritance) but in particular true for Angular components.
Now all/most components participate in an inheritance hierarchy. They do this by declaring abstract components. This is a code small and should be avoided.
If truly necessary to share functionality, instead create a service injecting what is needed, then inject that into components. This will also make the code shorter as we no longer have to autowire a ton of unnecessary services into all components to pass to the parent.
The text was updated successfully, but these errors were encountered: