diff --git a/client/src/js/directives/findpatient.js b/client/src/js/directives/findpatient.js index e17c89d06e..7b174ac6b6 100644 --- a/client/src/js/directives/findpatient.js +++ b/client/src/js/directives/findpatient.js @@ -2,9 +2,10 @@ angular.module('bhima.directives') .component('bhFindPatient', { controller: FindPatientComponent, templateUrl : 'partials/templates/findpatient.tmpl.html', - bindings : { - onSearchComplete : '&', - type : '@' + bindings: { + onSearchComplete: '&', // bind callback + type: '@', // bind string + required: '<', // bind the required } }); diff --git a/client/src/partials/templates/findpatient.tmpl.html b/client/src/partials/templates/findpatient.tmpl.html index 9ab299117c..d8eae25c55 100644 --- a/client/src/partials/templates/findpatient.tmpl.html +++ b/client/src/partials/templates/findpatient.tmpl.html @@ -14,7 +14,7 @@