Monday, 20 April 2015

Print div and download file using angular js

1.Print :



where divname is same as id what we set in html and PrintDiv is function name 

<button ng-click="printDiv('divname ')">Print your ticket</button>
OutPut:
2.Download:

<a href="{{pdfURL}}" target="_self" download="test.pdf">Download File</a>where pdfURL is the file path and test.pdf is the file name
Download is the html5 attribute which is used to download file directly with out opening in browser



Date Picker in angular js


No comments:

Post a Comment