3 ms·
All the introductory stuff for AngularJS I've seen so far is "client-side" - auto-updating bindings, the ToDo list etc. Is there a similarly pitched tutorial a
by crb 13y ago
All the introductory stuff for AngularJS I've seen so far is "client-side" - auto-updating bindings, the ToDo list etc.
Is there a similarly pitched tutorial about how to persist this back to a server, or how to write an API service that interacts best with the AngularJS model? Nothing in the list of video titles suggests that kind of help.
- WickyNilliams 13y agoAngular is agnostic of the back-end. Just use the $http service to read/write async from the server. The angular model is whatever your model is - there are no restrictions
- crb 13y agoI understand that, but an application isn't an island; presumably a server that speaks JSON is easiest to deal with, and there are probably a number of gotchas on "how best to build a backend that works the way AngularJS works well". I've not found anything like that yet and I'd love someone to point me to it.
- WickyNilliams 13y agoOK I get you. The angular-app [1] is a full stack app with angular front-end, node back-end. It's not a walkthrough but you could certainly read through the code [1] https://github.com/angular-app/angular-app https://github.com/angular-app/angular-app
- avoutthere 13y agoI've run across a number of tutorials that persist through a simple PHP-based REST API. What I haven't seen, but would very much like to, is one that includes authentication.