I want to download file that served by my back end using Polymer.
Back end is written on Scala with Play Framework.
Action responsible for serving file is working ( i've tested by entering action path in browser tab).
What i want is to get tis file by core-ajax component.
Maybe i should use something else? I cannot find any hints on the web.
Cheers!
UPDATE: Here is template part of code of component that i'm trying to launch, it is hosted inside of core-pages.
<template>
<link rel="stylesheet" type="text/css" href="../stylesheets/main.css">
<core-ajax
id="getData"
url="http://localhost:9000/getResult"
method="GET"
handleAs="document"
></core-ajax>
<label>Input id:</label>
<paper-input value="{{idToView}}" id="idInput" placeholder="id"></paper-input>
<!-- <paper-button on-tap="{{getResults}}" class="colored" raised>Create a link</paper-button>-->
<p>
<paper-autogrow-textarea id="a1">
<textarea id="t1"></textarea>
</paper-autogrow-textarea>
</p>
</template>