Skip to content

Instantly share code, notes, and snippets.

@sivakumar-kailasam
Created February 26, 2018 09:11
Show Gist options
  • Save sivakumar-kailasam/7c0cf88b4c07361fc138b45f5e609365 to your computer and use it in GitHub Desktop.
Save sivakumar-kailasam/7c0cf88b4c07361fc138b45f5e609365 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Component.extend({
name: 'Ember',
//sectionTitle:`I'm an awesome title`
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
{{outlet}}
{{my-component}}
<h1>Welcome to {{name}}</h1>
<section title={{sectionTitle}}>
{{#if name}}
I have a name!
{{else}}
Help me!
{{/if}}
</section>
{
"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