paint-brush
Why Class/Component inheritance in your Angular app might not be goodby@luukgruijs
15,343 reads
15,343 reads

Why Class/Component inheritance in your Angular app might not be good

by Luuk Gruijs4mJanuary 29th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

When developing your applications you inevitably come across situations where you need to create functionalities/features or even functions which are similar, but spreaded over multiple components or even modules. This means you have to find a solution for code reusability to keep your code maintainable. In <a href="https://hackernoon.com/tagged/angular" target="_blank">Angular</a>, and <a href="https://hackernoon.com/tagged/javascript" target="_blank">Javascript</a> applications in general, there are many patterns and solutions to set this up. As Angular is entirely Class based, inheritance could be a solution. Here’s why that might not be the best solution.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Why Class/Component inheritance in your Angular app might not be good
Luuk Gruijs HackerNoon profile picture
Luuk Gruijs

Luuk Gruijs

@luukgruijs

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Hashnode