sails-generate-frontend-angular icon indicating copy to clipboard operation
sails-generate-frontend-angular copied to clipboard

[Feature Request] Optionally use sails.io.js

Open buxel opened this issue 11 years ago • 0 comments

After finally managing to get an angular/sails setup running i started studying the docs a little bit more.

My takeaway of this was to get the much praised sailsJs real time functionality in angular, i'd have to use sails.io.js (http://sailsjs.org/#/documentation/reference/websockets/sails.io.js) on my requests where i need it.

Maybe it would be possible to make it optional by extending the model with "io". So we have:

  • Model.someFunction() //default as it is now
  • Model.io.someFunction() //all the sails fanciness included

But i guess this requires some advanced routing sorcery and sadly i'am currently an apprentice in both fields, angular and sails :wink: .

How does that fit in the current implementation using restangular? Is something like that planned? I'd like to help but need some pointers in the right direction.

buxel avatar Oct 06 '14 17:10 buxel