kick members node js

Ember.js kick members

In Ember.js, to kick members (remove them from a group) you can use the kick method on the members relationship.

For example, if you have a Group model that has many Member models:

// group.js
import Model from 'ember-data/model';
import { hasMany } from 'ember-data/relationships';

export default Model.extend({
  members: hasMany('member')
// member.js
import Model from 'ember-data/model';

export default Model.extend({

To kick (remove) a member from the group, you can call kick on the members relationship:

const group ='group', 1);
const memberToKick ='member', 2);


This will remove the member from the group's membership.

The kick method provides an easy way to remove members from a group directly from the relationship in Ember.js.