angular-sails-bind
angular-sails-bind copied to clipboard
An angular service to bind scope models to sailsjs models thru socket
Is it possible to set headers for the socket requests? As i would like to be able to set a Auth header on each request?
Hey, how do you think, the same lib can be done with Laravel? I mean Laravel is very similiar to Sails.
I have an angularjs app running on port 3131. This is what I get in the console. ``` GET XHR http://127.0.0.1:3131/socket.io/ [HTTP/1.1 404 Not Found 2ms] " Socket is trying...
I am trying to integrate this with my angular project but as soon as I make a call inside a controller I get the following error: ``` Error: io.socket is...
The model collection seems to be initing just fine. However, when I use another browser window to PUT changes to the model, the moment I submit those changes I get...
Hi, In my controller I have this, ``` $sailsBind.bind('model, $scope, $scope.pagination); ``` When I change `$scope.pagination` in my controller, the change isn't passed on to the socket. Cant redeclare `$sailsBind.bind()`...
I've hacked a fix using the deep watch syntax in my controller: ``` javascript $scope.$watchCollection = function(variable, cb) { return $scope.$watch(variable, cb, true); }; ``` Could we replace $watchCollection with...
Using a Sails model "item" that specifies "runtimeData" as a JSON object, I have not been able to get this to work when runtimeData is already set to a value....
If I have something like ``` javascript tree.rings ``` and I... ``` javascript $sailsBind.bind("tree", $scope) ``` The **trees** are two-way binding, but the **rings** are not.
I have policies that reject unauthorized requests to certain resources. It is quite easy to catch and handle if I'm using the REST API. I can't find a good way...