UNPKG

dcbia-surveys

Version:

A form to fill in order to collect information about TMJ.

25 lines (19 loc) 539 B
angular.module('dcbia-surveys') .directive('clinicalMarkers', function($rootScope, $location) { function link($scope){ if(!$scope.formData || ($scope.formData && $scope.formData.formId !== 'clinicalMarkers')){ $scope.formData = {}; $scope.formData.formId = 'clinicalMarkers'; $scope.formData.date = new Date(); } } return { restrict : 'E', link : link, scope: { formData : "=", editFields: "=" }, templateUrl: 'node_modules/clinical-markers/clinicalMarkers.template.html' } });