Skip to content

Instantly share code, notes, and snippets.

Avatar
🙋‍♂️
Its happening!

Robin Philip Thomas MalayaliRobz

🙋‍♂️
Its happening!
View GitHub Profile
View controllers.application\.js
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions: {
search() {
}
}
});
View components.hello-comp.js
import Ember from 'ember';
export default Ember.Component.extend({
nameValue: 'default-value',
actions: {
resetName() {
this.set('nameValue', 'default-value');
}
}
You can’t perform that action at this time.