Skip to content
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

[reboot-proposal] Service setter #62

Open
Yomguithereal opened this issue Nov 24, 2014 · 1 comment
Open

[reboot-proposal] Service setter #62

Yomguithereal opened this issue Nov 24, 2014 · 1 comment

Comments

@Yomguithereal
Copy link
Collaborator

The setter service option seems to be missing from the reboot. I don't remember if it was by design or not.

controller.registerService({
  url: '/users',
  setter: 'users'
});

Same thing as

controller.registerService({
  url: '/users',
  success: function(data) {
    this.update('users', data);
  }
});

The option is short to write and kinda handy. However, the setter name is not that good. Maybe we can find something better if we want to keep this option.

@jacomyal
Copy link
Owner

Yup, not sure if it was in the design either, but it still looks like a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants