Skip to content

Instantly share code, notes, and snippets.

View dbachet's full-sized avatar

Damien Bachet dbachet

View GitHub Profile
import Controller from '@ember/controller';
import { action } from "@ember/object";
import { set } from "@ember/object";
export default class ApplicationController extends Controller {
@action
changeToBim(){
set(this.model, "someText", "bim");
};
import Controller from '@ember/controller';
import { action } from "@ember/object";
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
@action
changeToBim(){
this.model.someText = "bim";
};
import Component from '@glimmer/component';
export default class extends Component {
}
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
import Component from '@glimmer/component';
export default class extends Component {
}
import Component from '@glimmer/component';
export default class extends Component {
}
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import { action } from "@ember/object";
export default class extends Component {
@service myService;
// constructor(owner, args){
// super(owner, args);
// this.myService.foo = 'init';
import Component from '@glimmer/component';
import { action } from '@ember/object';
export default class extends Component {
@action
init(element){
element.style.backgroundColor = "lightblue";
};
@action
@dbachet
dbachet / keybase.md
Created October 13, 2021 08:27
keybase.md

Keybase proof

I hereby claim:

  • I am dbachet on github.
  • I am naivespeakr (https://keybase.io/naivespeakr) on keybase.
  • I have a public key ASC-ostN4HFGQMfJ-Es8ZuxMHB6jQ4IzKkgidy1Dgvi0Hwo

To claim this, I am signing this object:

import Component from '@glimmer/component';
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
export default class extends Component {
@tracked greatProperty = false;
@action
toggle(){
this.greatProperty = !this.greatProperty;