janpantel / angular-sails

An angular module for using the sails socket.io api
MIT License
307 stars 56 forks source link

Changing default host / port (2.0.0 beta 2) #70

Closed AdamJessop closed 9 years ago

AdamJessop commented 9 years ago

Hi,

I have been working with angular-sails for a while however I wanted to update to the latest beta to get access to the defaults for help with authorisation however it has since broken my ability to change the default URL for the socket service.

Previously I was doing $sailsProvider.url = 'http://host:port' however it appears this has no effect.

Is there an updated method for achieving the same result?

Cheers, Adam.

AdamJessop commented 9 years ago

Closing this, figured it out.

app.config($sailsProvider) { $sailsProvider.config.url = 'http://host:port'; }

TheSharpieOne commented 9 years ago

That change was unintentional and, looking at the code, is a bug.

TheSharpieOne commented 9 years ago

This should be fixed in 2.0.0 beta 3 which has been released.

hugotown commented 8 years ago

Configuring default host / port how can i load the backendUrl , reading a config.json through $http request ? , is it possible ?

or change it dynamically?

regards