Skip to content

Instantly share code, notes, and snippets.

@mistahenry
Created November 21, 2018 09:41
Show Gist options
  • Save mistahenry/40809ac0e78bd57c89681901c5bbd598 to your computer and use it in GitHub Desktop.
Save mistahenry/40809ac0e78bd57c89681901c5bbd598 to your computer and use it in GitHub Desktop.
New Twiddle
import Controller from '@ember/controller';
export default Controller.extend({
init(){
this._super(...arguments);
this.set('images', [
"https://avatars0.githubusercontent.com/u/4096934?s=460&v=4"
]);
}
});
{{#each images as |img|}}
<img
class="d-block w-100"
src={{img}}
alt="Post Image"
>
{{/each}}
{
"version": "0.15.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
"ember": "3.4.3",
"ember-template-compiler": "3.4.3",
"ember-testing": "3.4.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment