Skip to content

Instantly share code, notes, and snippets.

@shhQuiet
Last active August 19, 2016 21:40
Show Gist options
  • Save shhQuiet/0df1cc0dcb57cf0d7a6e12747a661af9 to your computer and use it in GitHub Desktop.
Save shhQuiet/0df1cc0dcb57cf0d7a6e12747a661af9 to your computer and use it in GitHub Desktop.
Simple Binding
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Simple binding'
});
<h1>Welcome to {{appName}}</h1>
{{outlet}}
<h2>Simple binding</h2>
<p>This is a very simple example of binding an object's value
to something on the screen.</p>
<p>Type something here: {{input value=inputVal}}</p>
<p>And see it automatically appear here:</p>
<h1>{{inputVal}}</h1>
{
"version": "0.10.4",
"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.7.0",
"ember-data": "2.7.0",
"ember-template-compiler": "2.7.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment