Skip to content

Instantly share code, notes, and snippets.

@Gaurav0
Last active March 3, 2020 18: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 Gaurav0/8a10599702fbd7d556ab8f993c573e17 to your computer and use it in GitHub Desktop.
Save Gaurav0/8a10599702fbd7d556ab8f993c573e17 to your computer and use it in GitHub Desktop.
Octane Features
import Component from '@glimmer/component';
export default class MyComponent extends Component {
};
import Controller from '@ember/controller';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
export default class ApplicationController extends Controller {
@tracked
appName = 'Ember Twiddle';
@action
appNameChanged(event) {
this.appName = event.target.value;
}
}
<h1>Welcome to {{this.appName}}</h1>
<MyComponent @appName={{this.appName}} @appNameChanged={{this.appNameChanged}} />
<br>
<br>
<input value={{@appName}} {{on "input" @appNameChanged}} />
{
"version": "0.17.0",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
"ember": "3.14.3",
"ember-template-compiler": "3.14.3",
"ember-testing": "3.14.3"
},
"addons": {
"@glimmer/component": "1.0.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment