AngularJS using factory method, post data and saving to DB
Posted on 19 Mar 2013 by Amitav Roy
In the last tutorial, I showed how we can use the factory method to share an object (in our case the list of books) and then we displayed those books in our view. The next step is to post data so that we can add another book to the database and that will also update the main listing. So, in this tutorial I will show you how to do that.