View icons.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ab-test.svg | |
academy.svg | |
account.svg | |
active.svg | |
activity.svg | |
add-column-left.svg | |
add-column-right.svg | |
add-macro.svg | |
add-participant.svg | |
add-row-above.svg |
View components.alpha-panel\.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Component from '@glimmer/component'; | |
import { tracked } from '@glimmer/tracking'; | |
import { action } from '@ember/object'; | |
export default class extends Component { | |
@tracked isOpen = false; | |
@action | |
togglePanel() { | |
this.isOpen = !this.isOpen; |
View components.alpha-page\.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Component from '@glimmer/component'; | |
import { tracked } from '@glimmer/tracking'; | |
import { action } from '@ember/object'; | |
export default class extends Component { | |
@tracked random = this.getRandom(); | |
constructor() { | |
super(...arguments); | |
console.log('INIT: Alpha Page Component'); |
View controllers.alpha\.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Controller from '@ember/controller'; | |
import { action } from '@ember/object'; | |
export default Controller.extend({ | |
init() { | |
this._super(...arguments); | |
console.log('INIT: Alpha Controller'); | |
this.set('random', this.getRandom()); | |
}, | |
View controllers.alpha\.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Controller from '@ember/controller'; | |
export default Controller.extend({ | |
init() { | |
this._super(...arguments); | |
console.log('INIT: Alpha Controller'); | |
} | |
}); |
View components.data-flow\.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Component from '@glimmer/component'; | |
import { action } from '@ember/object'; | |
export default class HtmlDemo extends Component { | |
@action | |
updateFirstName(event) { | |
// This will throw an error because this.args is not mutable | |
this.args.firstName = event.target.value; | |
} | |
} |
View components.data-flow\.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Component from '@ember/component'; | |
export default Component.extend({ | |
actions: { | |
updateLastName(event) { | |
this.set('lastName', event.target.value); | |
} | |
} | |
}); |
View input.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$blue: #0000ff; | |
.parent { | |
.child { | |
background: $blue; | |
} | |
} |
View input.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$blue: #0000ff; | |
.parent { | |
.child { | |
background: $blue; | |
} | |
} |
View controllers.application\.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Controller from '@ember/controller'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
} |
NewerOlder