tellform/public/modules/forms/controllers/submit-form.client.controller.js

22 lines
553 B
JavaScript
Raw Normal View History

2015-06-29 22:51:29 +00:00
'use strict';
// Forms controller
2015-06-30 16:15:16 +00:00
angular.module('forms').controller('SubmitFormController', ['$scope', '$stateParams', '$state', 'Principal', 'Forms', 'CurrentForm',
function($scope, $stateParams, $state, Principal, Forms, CurrentForm) {
2015-06-29 22:51:29 +00:00
// 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);
// });
}
]);