We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! Not really an issue but a question :)
Since I had the same 404 issues in my console with the example code, I've tried the solution provided here and it works great : #82
... .factory('mySocket', function (socketFactory) { return socketFactory({ ioSocket: io('http://XX.XX.XX.XX:12345') // Local ENV // ioSocket: io('http://YY.YY.YY.YY:9000') // Staging }); });
My problem: I need to switch between URLs when I deploy my app and it's painful if I have to do it manually in the app.js file everytime...
Question: How can I make this URL become a parameter of my Angular app? If I use ng-init to define this value, how can I use it in the socketFactory?
Thanks for your help!
The text was updated successfully, but these errors were encountered:
You should define the URL as a constant then inject it to your mySocket service
mySocket
Sorry, something went wrong.
No branches or pull requests
Hi!
Not really an issue but a question :)
Since I had the same 404 issues in my console with the example code, I've tried the solution provided here and it works great : #82
My problem: I need to switch between URLs when I deploy my app and it's painful if I have to do it manually in the app.js file everytime...
Question: How can I make this URL become a parameter of my Angular app? If I use ng-init to define this value, how can I use it in the socketFactory?
Thanks for your help!
The text was updated successfully, but these errors were encountered: