Hi All, Just joined the group and I'm fairly new to AngularJS building my first application using the same.
I have religiously followed the tutorials from the AngularJS website while building this application. Here's the case: As any typical SOA application, I have AngularJS App as UI layer which talks to JSON REST APIs to get things done. The same APIs are exposed to our customers to build custom dashboards for themselves as well. So far I have directly attached the JSON response object coming from API to the view. i.e. Controller has property say, 'ui' which holds the data coming from API and renders the UI accordingly. It worked well till now, but now as we are customizing UI and adding more feature, I always need to update the API responses to match new requirements. This is not always possible as same APIs are used elsewhere. What should be the best approach to solve this? 1. Create a different object under controller that will be used to render UI and have a converter that converts the data from ever changing UI into stable APIs. 2. Keep modifying APIs and keep the two way data binding simple and fast. If I go with option 1, how do I make sure that when UI changes the object, it gets reflected into object to be sent to API and when an object is read from API, the object attached to UI gets updated as well. Thanks in advance, Vivek -- 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
