Hi Dave, So, you want to build an universal editor, that can CRUD each of those models. Did I get that right? You don't need those models to interact in your views. For starters, you just want a CRUD for each and every separate model? Authentication and validation is enforced by the server right?
That is not too hard to create with NG1. Just some base functionality, and a handful of services. There are (as usual) many way's to pick this up, from entirely imperative to entirely declarative. And everything in between. It is hard to give you advice on the path to take, because there are too many unknowns for me. I will set a scenario out anyway. First I would create a service that can take the model's endpoint, and gives back a working object that takes care of the basic CRUD stuff, and encapsulates the model. then I would write an 'wrapper' that handles all the default stuff that's the same for every model. That wrapper would take care of loading in the form.template. I would opt for creating a template for each and every model, that that hold the actual form-fields for each model. However, if your models are pretty uniform, creating such a from from code is also a possibility. If you go that route, have a look at formly <http://angular-formly.com/#/> Hope this helps you a bit. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
