Skip to content

Instantly share code, notes, and snippets.

@Renukutty
Created September 30, 2016 12:39
Show Gist options
  • Save Renukutty/fad676cdb1389d5166954e2791b462fe to your computer and use it in GitHub Desktop.
Save Renukutty/fad676cdb1389d5166954e2791b462fe to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Component.extend({
create_obj: Ember.Object.create({
ws_name: '',
temp_name: 'ram',
}),
actions: {
getWSName(){
console.log('getWSName');
var workspace_name = this.get('create_obj.ws_name');
console.log(this.get('create_obj.temp_name'));
console.log(workspace_name)
}
}
});
import Ember from 'ember';
export default Ember.Component.extend({
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
<h1>Welcome to {{ws_name}}</h1>
<br>
<br>
{{my-comp}}
{{outlet}}
<br>
<br>
{{input type="text" value=create_obj.ws_name }}
<button {{action 'getWSName'}} >Click</button>
{{yield}}
Hiiii
{{child-comp}}
{{yield}}
{
"version": "0.10.5",
"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.8.0",
"ember-data": "2.8.0",
"ember-template-compiler": "2.8.0",
"ember-testing": "2.8.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment