title: How do you serve a file for download with AngularJS or Javascript?
body: <p>I have some text in a hidden textarea. When a button is clicked I would like to have the text offered for download as a <code>.txt</code> file. Is this possible using AngularJS or Javascript?</p>