Skip to content

Instantly share code, notes, and snippets.

@benedikt
Last active November 21, 2020 19:31
Show Gist options
  • Save benedikt/d2c2ad5ad46e569f9dc266abf045f089 to your computer and use it in GitHub Desktop.
Save benedikt/d2c2ad5ad46e569f9dc266abf045f089 to your computer and use it in GitHub Desktop.

Revisions

  1. benedikt revised this gist Jun 17, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions templates.application\.hbs
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,5 @@ String, is pending: {{is-pending "hello"}}<br />
    Array, is pending (wrapped in `await`): {{is-pending (await (array "one" "two" "three"))}}<br />

    <h1>Fails</h1>
    Array, is pending: {{is-pending (array "one" "two" "three")}}

  2. benedikt revised this gist Jun 17, 2020. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion templates.application\.hbs
    Original file line number Diff line number Diff line change
    @@ -4,5 +4,4 @@ String, is pending: {{is-pending "hello"}}<br />
    Array, is pending (wrapped in `await`): {{is-pending (await (array "one" "two" "three"))}}<br />

    <h1>Fails</h1>
    Array, is pending: {{is-pending (array "one" "two" "three")}}

  3. benedikt revised this gist Jun 17, 2020. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions templates.application\.hbs
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,8 @@
    <h1>Works</h1>

    String, is pending: {{is-pending "hello"}}<br />
    Array, is pending (wrapped in `await`): {{is-pending (await (array "one" "two" "three"))}}<br />

    <h1>Fails</h1>
    Array, is pending: {{is-pending (array "one" "two" "three")}}

  4. benedikt created this gist Jun 17, 2020.
    5 changes: 5 additions & 0 deletions controllers.application\.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    import Controller from '@ember/controller';

    export default class ApplicationController extends Controller {
    appName = 'Ember Twiddle';
    }
    4 changes: 4 additions & 0 deletions templates.application\.hbs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    String, is pending: {{is-pending "hello"}}<br />
    Array, is pending (wrapped in `await`): {{is-pending (await (array "one" "two" "three"))}}<br />
    Array, is pending: {{is-pending (array "one" "two" "three")}}

    23 changes: 23 additions & 0 deletions twiddle\.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    {
    "version": "0.17.1",
    "EmberENV": {
    "FEATURES": {},
    "_TEMPLATE_ONLY_GLIMMER_COMPONENTS": false,
    "_APPLICATION_TEMPLATE_WRAPPER": true,
    "_JQUERY_INTEGRATION": true
    },
    "options": {
    "use_pods": false,
    "enable-testing": false
    },
    "dependencies": {
    "jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.js",
    "ember": "3.18.1",
    "ember-template-compiler": "3.18.1",
    "ember-testing": "3.18.1"
    },
    "addons": {
    "@glimmer/component": "1.0.0",
    "ember-promise-helpers": "1.0.9"
    }
    }