Skip to content

Instantly share code, notes, and snippets.

View oliverlj's full-sized avatar

Oliver Lj oliverlj

View GitHub Profile
@oliverlj
oliverlj / controllers.application\.js
Last active September 13, 2021 12:14
New Twiddle
import Controller from '@ember/controller';
import { action } from '@ember/object';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
cities = ['Barcelonaaaa', 'London', 'New York', 'Porto']
destination = 'Barcelonaaaa'
@action
chooseDestination(city) {
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
contribution = 1000;
}
export default class File {
/**
* Returns the appropriate file extension of the file according to the type
*/
extension: string;
/**
* A unique id generated for this file
*/
id: string;