Skip to content

Instantly share code, notes, and snippets.

@JudahGabriel
Created April 24, 2017 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JudahGabriel/1f85084c8de6300d1b75faea67cd9daf to your computer and use it in GitHub Desktop.
Save JudahGabriel/1f85084c8de6300d1b75faea67cd9daf to your computer and use it in GitHub Desktop.
UsersController.prototype.fetchUsers = function () {
return __awaiter(this, void 0, void 0, function () {
var results;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.usersApi.getUsers(0, 100)];
case 1:
results = _a.sent();
this.users = results;
return [2 /*return*/];
}
});
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment