This error occurs when i am trying to clear the upload file data
using angular.element("input[type='file']").val(null); in ng-click event.
This error occurs due to that, i had put jquery script tag after angularjs.
<script data-require="angular.js@1.3.x<wbr />" src="<a href="https://code.angularjs.org/1.3.15/angular.js" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://code.angularjs.org/1.3.15/angular.js&source=gmail&ust=1497810306404000&usg=AFQjCNFpugSiga_UIL438wrAzRsNrbKNwA">https://code.angularjs.<wbr />org/1.3.15/angular.js</a>" data-semver="1.3.15"></script>
<script data-require="jquery@2.1.3" data-semver="2.1.3" src="<a href="http://code.jquery.com/jquery-2.1.3.min.js" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://code.jquery.com/jquery-2.1.3.min.js&source=gmail&ust=1497810306404000&usg=AFQjCNF62Dn_fiNBBHg56-wDiMJlx2ZmCg">http://code.jquery.com/<wbr />jquery-2.1.3.min.js</a>"></script>
after i changed the order of the script link. it works perfect
using angular.element("input[type='file']").val(null); in ng-click event.
This error occurs due to that, i had put jquery script tag after angularjs.
<script data-require="angular.js@1.3.x<wbr />" src="<a href="https://code.angularjs.org/1.3.15/angular.js" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://code.angularjs.org/1.3.15/angular.js&source=gmail&ust=1497810306404000&usg=AFQjCNFpugSiga_UIL438wrAzRsNrbKNwA">https://code.angularjs.<wbr />org/1.3.15/angular.js</a>" data-semver="1.3.15"></script>
<script data-require="jquery@2.1.3" data-semver="2.1.3" src="<a href="http://code.jquery.com/jquery-2.1.3.min.js" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://code.jquery.com/jquery-2.1.3.min.js&source=gmail&ust=1497810306404000&usg=AFQjCNF62Dn_fiNBBHg56-wDiMJlx2ZmCg">http://code.jquery.com/<wbr />jquery-2.1.3.min.js</a>"></script>
after i changed the order of the script link. it works perfect
No comments:
Post a Comment
Note: only a member of this blog may post a comment.