Skip to content

Instantly share code, notes, and snippets.

@0000marcell
Last active October 25, 2017 21:14
Show Gist options
  • Save 0000marcell/78fe34712b53efa14c9aadcb86c09793 to your computer and use it in GitHub Desktop.
Save 0000marcell/78fe34712b53efa14c9aadcb86c09793 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
steps: [{text: [10, 10, 'oh no, im blank']}],
appName: 'Ember Twiddle'
});
<h1>A blank file T_T </h1>
<p>Only works if showPdf is true</p>
{{#js-pdf steps=steps showPdf=false as |pdf|}}
<button {{action pdf.save}}>Download PDF</button>
{{/js-pdf}}
{
"version": "0.12.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.12.0",
"ember-template-compiler": "2.12.0",
"ember-testing": "2.12.0"
},
"addons": {
"ember-data": "2.12.1",
"ember-js-pdf": "0.4.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment