Show the SaveAs Dialog Box when Save button is clicked using Angularjs

bleyk picture bleyk · Jan 12, 2016 · Viewed 7.3k times · Source

I want to save my data on my local drive but I first want to open the saveAs dialog box. How can I do that? Im using AngularJS

This is the code that I have

    <input type="button" value="Save" ng-click="dialogs.saveAs()">
<div id="dvData">
<script type="text/javascript">

The whole code is on this plunker : http://plnkr.co/edit/eWBi9uPVX5tJWwTsCVOd?p=preview

Answer