Answer the question
In order to leave comments, you need to log in
What is the best way to implement such a structure in angular?
I am writing the following functionality: The user can create records, records have types (text, image, video). Depending on the type, it will have individual fields to fill (link to video, text or image). I think in what ways it is possible to build a similar structure in the project? It seems to me that you need to create a parent Post class and inherit from it TextPost, ImagePost, VideoPost.
I would like to see how you build the architecture of such functionality, or advise a pattern. Thank you.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question