1
0
Fork 0
mirror of https://github.com/mmumshad/ansible-playable.git synced 2025-02-15 04:42:05 +00:00
ansible-playable/client/app/admin/admin.controller.js

15 lines
272 B
JavaScript
Raw Normal View History

2017-06-07 17:36:44 +00:00
'use strict';
export default class AdminController {
/*@ngInject*/
constructor(User) {
// Use the User $resource to fetch all users
this.users = User.query();
}
delete(user) {
user.$remove();
this.users.splice(this.users.indexOf(user), 1);
}
}