Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeff Sturgis jsturgis

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 Controller from '@ember/controller';
import { inject as service } from '@ember/service';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
@service myService;
}
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',
});
View adapters.application.js
import DS from 'ember-data';
export default DS.JSONAPIAdapter.extend({
namespace: 'api/v1'
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
languages: ["HTML","Css","Javascript","php"],
name: "John Doe",
init() {
this._super(...arguments);
this.get('languages').forEach( language =>{
View components.my-component.js
import Ember from 'ember';
import EligibilityCheck from '../eligibility-check-for-third-party';
export default Ember.Component.extend({
init() {
this._super(...arguments);
const config = {
pollTask: () => {console.log('called polltask')},
runTask: () => {console.log('called runtask')},
View controllers.application.js
import Ember from 'ember';
import { defer } from 'rsvp';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
this._super(...arguments);
this.myAsyncFun();
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
You can’t perform that action at this time.