-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
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
How to call a custom action? #1
Comments
What's your route to that action? |
Like this
Edit: I've digged through the Javascript Code a bit, but could not find anything about anything other than CRUD.. The minified script made it a bit hard to inspect the code. |
I don't think there's currently a method baked into the Angular package. You can always instantiate your own socket though: var socket = new WebSocket('ws://localhost:3000/servers/1/start');
socket.onopen = function (data) { console.log('opened:', data); }
socket.onmessage = function (data) { console.log('message:', data); } Or something similar. Entangled should take care of the rest in the backend though. If it doesn't, let me know. |
Well, I thought so. |
Here's the un-minified source if you're interested. |
In your backend code you provided the possibility to call custom actions additionally to the RESTful ones.
Let's assume I have the following code in my controller:
How would I call the start action from this client side?
Good work by the way! I really enjoy not having to take care of the data being pulled into the frontend.
The text was updated successfully, but these errors were encountered: