I am new to both of these technology and taking this opportunity to learn and explore them.
I have a situation where on button click event, I am suppose to put data into a file and allow user to download it. The output file should be in doc format. I tried using blob, below is the code but that too didn't helped:
app.config(['$compileProvider',function($compileProvider)}
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|blob:/);
}]);
var content = 'file content for example';
var myBlob = new Blob([content],{type:'application/msword'});
var fileURL = window.URL.createObjectURL(myBlob);
$scope.url = $sce.trustAsResourceUrl(fileURL);
By using above code I am getting following error:
unsafe:blob:GUID number
We are using Sharepoint 2013 and angular.js-1.2.28
I need help/guidance in solving this issue
We are using JSOM api and file doesn't exist in Sharepoint.
I appreciate your help in advance.
I am sorry for basic question, as I said I am still learning.