F
F
flafy42020-04-22 20:31:11
JavaScript
flafy4, 2020-04-22 20:31:11

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 question

Ask a Question

731 491 924 answers to any question