Skip to content

Instantly share code, notes, and snippets.

@samueljseay
Last active August 30, 2015 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueljseay/ffacf387a2de5852cbcf to your computer and use it in GitHub Desktop.
Save samueljseay/ffacf387a2de5852cbcf to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
someProp: Ember.computed(function(){
return "<a href='#'>Click me</a>";
})
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
{{{someProp}}}
{{#my-component}}
{{{someProp}}}
{{/my-component}}
<br>
<br>
import Ember from 'ember';
export default Ember.Component.extend({
});
{
"version": "0.4.9",
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/1.13.9/ember.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/1.13.11/ember-data.js",
"ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/1.13.9/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment