angularjs에서 입력[type=file]로 폼을 검증하는 방법 HTML: 입력[type=file] 변경 내용을 수신하는 사용자 지정 지시어: myApp.directive('validFile',function(){ return { require:'ngModel', link:function(scope,el,attrs,ngModel){ //change event is fired when file is selected el.bind('change',function(){ scope.$apply(function(){ ngModel.$setViewValue(el.val()); ngModel.$render(); }); }); } }; }); 파일을 선택하면 콘솔에 다음과 같은 오류가 나타납니다. 오류: Inval..