I have a developing an app using angularJS + Symfony. From backend I have the following entities:
class Property {...}
class Land extends Property {...}
class House extends Property {...}
class Office extends Property {...}
class Field extends Property {...}
Each subclass has its own specific fields.
From frontend I need to create any subclass of property in one screen. So I would show/hidden serveral fields by the property type selected. I read about ng-show but I would like some more dynamic and general due to I will have the same problem with the "view" screen.
What do you suggest? What is the best approach?