walnut_launchpad.html/js/controllers/email-controller.js

17 lines
420 B
JavaScript
Raw Normal View History

app.controller('emailCtrl', [
2017-09-01 20:50:33 +00:00
'$scope', '$q', 'Auth', 'azp@oauth3.org', '$timeout'
, function ($scope, $q, Auth, Oauth3, $timeout) {
var vm = this;
vm.getSettings = function () {
var pkg = Auth.oauth3.pkg('email@daplie.com');
return pkg.settings().then(function (resp) {
vm.settings.service = 'mailgun.org';
vm.settings = resp.data;
});
};
vm.getSettings();
}
]);