Home

Awesome

ember-import-snippets

This extension contains helpful Ember snippets based on the new import syntax post-RFC176. This is a work-in-progress and additional imports will be included.

Currently Supported Imports

Getters/Setters

InputResult
imp e getsetimport { get, getProperties, set, setProperties } from '@ember/object';
imp e getimport { get, getProperties } from '@ember/object';
imp e setimport { set, setProperties } from '@ember/object';

Inject as Service

InputResult
imp e serviceimport { inject as service } from '@ember/service';

Computeds

InputResult
imp e computed allimport { alias, readOnly, and, bool } from '@ember/object/computed';
imp e computedimport { computed } from '@ember/object';
imp e computed readonlyimport { readOnly } from '@ember/object/computed';
imp e computed aliasimport { alias } from '@ember/object/computed';

Run Loop

InputResult
imp e runloopimport { bind, later, run } from '@ember/runloop';

ember-concurrency

InputResult
imp e concurrencyimport { task, timeout } from 'ember-concurrency';;
imp e concurrency taskimport { task } from 'ember-concurrency';
imp e concurrency timeoutimport { timeout } from 'ember-concurrency';