An angular service to bind scope models to sailsjs models thru web sockets
3 people use it
Author: 2249375? diegopamio

Angular Sails Bind

An AngularJS service to bind Angular models with sailsjs backend models using

Add it as a dependency to your angular app, and then bind any model IN JUST ONE LINE!!!!!

$sailsBind("--your model name here--", $scope);

What it does:

  • Creates the model inside the $scope for you.
  • Retrieves the model data from the backend using socket.
  • Watches for changes made by the user in the UI and updates the backend immediately.
  • Watches for changes made in the backend and updates the UI immediately.

See the full description at:

comments powered by Disqus
This page was last updated over 4 years ago.