22 lines
529 B
JavaScript
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);
|
|
|
|
|
|
// });
|
|
}
|
|
]); |