Skip to content

Instantly share code, notes, and snippets.

@luxzeitlos
Last active May 4, 2019 22:45
Show Gist options
  • Save luxzeitlos/aa0a180e0c31d930114d3310004bfd6f to your computer and use it in GitHub Desktop.
Save luxzeitlos/aa0a180e0c31d930114d3310004bfd6f to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
link1: 'https://cdn.pixabay.com/photo/2014/11/30/14/11/kitty-551554__340.jpg',
});
<svg>
<image
width=10
height=10
xlink:href="https://cdn.pixabay.com/photo/2014/11/30/14/11/kitty-551554__340.jpg"
/>
</svg>
<svg>
<image
width=10
height=10
xlink:href="{{link1}}"
/>
</svg>
<svg>
<image
width=10
height=10
xlink:href="{{link2}}"
/>
</svg>
<button onclick={{action (mut this.link1) "https://www.happy-cat.ch/uploads/tx_ggcircleelement/HappyCat_Katzenratgeber_circle_katzenbaby.jpg"}}>change link 1</button>
<button onclick={{action (mut this.link1) "https://www.happy-cat.ch/uploads/tx_ggcircleelement/HappyCat_Katzenratgeber_circle_katzenbaby.jpg"}}>change link 2</button>
{
"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"
},
"addons": {
"ember-data": "3.4.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment