JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app = "mainApp" ng-controller = "studentController as ctrl">
<b ng-click="ctrl.click()">click me</b>
</div>
JavaScript
var mainApp = angular.module("mainApp", []);
mainApp.controller('studentController', function($scope) {
this.click = function () {
console.log(URL.createObjectURL);
var x = URL.createObjectURL(new Blob(['csvStr'], { type: 'text/csv;charset=utf-8;' }));
console.log(x);
};
});