ohmyform/public/modules/forms/controllers/submit-form.client.controller.js
2015-06-30 13:57:20 -07:00

22 lines
529 B
JavaScript

'use strict';
// Forms controller
angular.module('forms').controller('SubmitFormController', ['$scope', '$stateParams', '$state', 'Forms', 'CurrentForm',
function($scope, $stateParams, $state, Forms, CurrentForm) {
// Principal.identity().then(function(user){
// $scope.authentication.user = user;
// }).then(function(){
$scope.form = Forms.get({
formId: $stateParams.formId
});
CurrentForm.setForm($scope.form);
// console.log($scope.form);
// });
}
]);