Skip to content

Instantly share code, notes, and snippets.

@chadhietala
Created March 23, 2018 01:14
Show Gist options
  • Select an option

  • Save chadhietala/b73d6f0eb2c2ed6885d8e17f33def7ac to your computer and use it in GitHub Desktop.

Select an option

Save chadhietala/b73d6f0eb2c2ed6885d8e17f33def7ac to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
innerText: 'Inner Text',
innerHTML: `<h1>Inner HTML</h1>`,
textContent: 'Text Content'
});
body {
margin: 12px 16px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 12pt;
}
.red {
border: 1px solid red;
margin: 10px;
}
<h1>Suprising Things That Work</h1>
<div class="red" innerText={{innerText}}>
- What in the World???
</div>
<div class="red" textContent={{textContent}}>
- What in the World???
</div>
<div class="red" innerHTML={{innerHTML}}>
- What in the World???
</div>
{
"version": "0.13.0",
"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.16.2",
"ember-template-compiler": "2.16.2",
"ember-testing": "2.16.2"
},
"addons": {
"ember-data": "2.16.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment