ohmyform/public/modules/forms/controllers/submit-form.client.controller.js
2015-06-30 09:15:16 -07:00

22 lines
553 B
JavaScript

'use strict';
// Forms controller
angular.module('forms').controller('SubmitFormController', ['$scope', '$stateParams', '$state', 'Principal', 'Forms', 'CurrentForm',
function($scope, $stateParams, $state, Principal, 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);
// });
}
]);