Open BenBlaisdell opened 8 years ago
@BenBlaisdell - It's been a while since I've looked at this code. I vaguely remember choosing the current format because it seemed like a nice way to deal with page layout in general.
Can you help me understand more about "This would make it much easier to add features..."? I guess that's the key question. Some guiding principles I used when writing dart initially were:
Will the refactoring support these values?
entity
controllers and directives. One specific example is the table directives. It will be easier to iterate on the ui if only the base dt-entity-table needs to be updated to add entity-agnostic features instead of ten different concrete entity templates and controllers.Sounds good.
FWIW - If I could do this all over again, I would try to use react + redux... Assuming there is a json-schema-form equivalent :)
I've been doing more research into angular and how the frontend is organized in order to make adding new features easier in the future. Right now there seems to be a decent amount of duplicate js and html that could be turned int abstract templates and initialized with a specialized controller for each entity.
How states currently operate (omitted non-relevant lines)
What I'm thinking
Passing the controller with entity-specific data into the abstract create button and entity table
This would make it much easier to add features to general entity tools in the future. Disclaimer: I'm not sure if my controllerAs trickery in app.entities will work as intended, but that can be easily moved into child states if it doesn't.
@dannymcpherson, @maybeiambatman suggested I talk to you before spending too much time on this. Is there a reason you went with the current implementation aside from ease of initial setup, and do you have any comments/critiques of the route I'm thinking of trying?