I just started learning AngularJS. My requirement is to upload the XML file from UI, which will further converted into JSON object. I had tried and google it but not found any proper solution. Please someone help me. thnx
this is my file and button code in html
<input type="file" id="importFile" mg-model="aclFile"/>
<input type="button" class="btn green" ng-click="uploadAclFile(aclFile)" value="Import" />
And this is angular js function
$scope.uploadAclFile = function(xmlData) {
alert("xmlData: " + doc);
}