Skip to content

Instantly share code, notes, and snippets.

@3gwebtrain
3gwebtrain / machine.js
Created November 18, 2021 13:29
Generated by XState Viz: https://xstate.js.org/viz
Machine({
initial:'inactive',
states:{
inactive:{
on:{
TOGGLE:'pending'
}
},
pending:{
on:{
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@3gwebtrain
3gwebtrain / controllers.application.js
Last active February 18, 2018 10:43
Dynamic Calss
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
class:'myclass',
actions:{
setting:function(element, index){
console.log(element, index);
}
}
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Data Sharing'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'team>player'
});
import Ember from 'ember';
export default Ember.Component.extend({
});
import Ember from 'ember';
export default Ember.Component.extend({
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});