Created
April 24, 2017 22:39
-
-
Save JudahGabriel/1f85084c8de6300d1b75faea67cd9daf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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