Skip to content

Instantly share code, notes, and snippets.

@msalahz
Last active May 7, 2017 20:36
Show Gist options
  • Save msalahz/25c1d77255d014251a7725d9c2abf0a9 to your computer and use it in GitHub Desktop.
Save msalahz/25c1d77255d014251a7725d9c2abf0a9 to your computer and use it in GitHub Desktop.
Cheat Sheets

default: Ember

import Ember from 'ember';

default: Ember.Application

import Application from 'ember-application';

default: Ember.Array

import Array from 'ember-array';

'default: Ember.MutableArray

import MutableArray from 'ember-array/mutable';

A: Ember.A

isEmberArray: Ember.isArray

wrap: Ember.makeArray

import { A, isEmberArray, wrap } from 'ember-array/utils';

default: Ember.Component

import Component from 'ember-component';

default: Ember.Checkbox

import Checkbox from 'ember-components/checkbox';

default: Ember.TextArea

import TextArea from 'ember-components/text-area';

default: Ember.TextField

import TextField from 'ember-components/text-field';

default: Ember.Controller

import Controller from 'ember-controller';

default: Ember.inject.controller

import injectController from 'ember-controller/inject';

default: Ember.ArrayProxy

import ArrayProxy from 'ember-controller/proxy';

default: Ember.SortableMixin

import SortableMixin from 'ember-controllers/sortable';

log: Ember.debug

inspect: Ember.inspect

run: Ember.runInDebug

warn: Ember.warn

import { log, inspect, run, warn } from 'ember-debug';

default: Ember.ContainerDebugAdapter

import ContainerDebugAdapter from 'ember-debug/container-debug-adapter';

default: Ember.DataAdapter

import DataAdapter from 'ember-debug/data-adapter';

deprecate: Ember.deprecate

deprecateFunc: Ember.deprecateFunc

import { deprecate, deprecateFunc } from 'ember-deprecations';

default: Ember.Enumerable

import Enumerable from 'ember-enumerable';

default: Ember.Evented

import Evented from 'ember-evented';

default: Ember.on

import on from 'ember-evented/on';

default: Ember.DefaultResolver

import DefaultResolver from 'ember-globals-resolver';

default: Ember.Helper

helper: Ember.Helper && Ember.Helper.helper

import Helper from 'ember-helper';
import { helper } from 'ember-helper';

instrument: Ember.Instrumentation.instrument

reset: Ember.Instrumentation.reset

subscribe: Ember.Instrumentation.subscribe

unsubscribe: Ember.Instrumentation.unsubscribe

import { instrument, reset, subscribe, unsubscribe } from 'ember-instrumentation';

default: Ember.HashLocation

import HashLocation from 'ember-locations/hash';

default: Ember.HistoryLocation

import HistoryLocation from 'ember-locations/history';

default: Ember.NoneLocation

import NoneLocation from 'ember-locations/none';

'default: Ember.Map

withDefault: Ember.MapWithDefault

import Map from 'ember-map';
import { withDefault } from 'ember-map';

default: Ember.destroy

import destroy from 'ember-metal/destroy';

addListener: Ember.addListener

removeListener: Ember.removeListener

send: Ember.sendEvent

import { addListener, removeListener, send } from 'ember-metal/events';

default: Ember.get

getProperties: Ember.getProperties

import get from 'ember-metal/get';
import { getProperties } from 'ember-metal/get';

default: Ember.Mixin

import Mixin from 'ember-metal/mixin';

default: Ember.observer

addObserver: Ember.addObserver

removeObserver: Ember.removeObserver

import observer from 'ember-metal/observer';
import { addObserver, removeObserver } from 'ember-metal/observer';

default: Ember.onLoad run: Ember.runLoadHooks

import onLoad from 'ember-metal/on-load';
import { run } from 'ember-metal/on-load';

default: Ember.set

setProperties: Ember.setProperties

trySet: Ember.trySet

import set from 'ember-metal/set';
import { setProperties, trySet } from 'ember-metal/set';

aliasMethod: Ember.aliasMethod

assert: Ember.assert

cacheFor: Ember.cacheFor

copy: Ember.copy

guidFor: Ember.guidFor

import { aliasMethod, assert, cacheFor, copy, guidFor } from 'ember-metal/utils';

default: Ember.Object

import Object from 'ember-object';

default: Ember.getOwner

import getOwner from 'ember-owner/get';

default: Ember.setOwner

import setOwner from 'ember-owner/set';

assign: Ember.assign || Ember.merge

create: Ember.create

defineProperty: Ember.platform.defineProperty

hasAccessors: Ember.platform.hasPropertyAccessors

keys: Ember.keys

import { assign, create, defineProperty, hasAccessors, keys } from 'ember-platform';

default: Ember.Route

import Route from 'ember-route';

default: Ember.Router

import Router from 'ember-router';

default: Ember.run

begin: Ember.run.begin

bind: Ember.run.bind

cancel: Ember.run.cancel

debounce: Ember.run.debounce

end: Ember.run.end

join: Ember.run.join

later: Ember.run.later

next: Ember.run.next

once: Ember.run.once

schedule: Ember.run.schedule

scheduleOnce: Ember.run.scheduleOnce

throttle: Ember.run.throttle

import run from 'ember-runloop';
import { begin, bind, cancel, debounce, end, join, later, next, once, schedule, scheduleOnce, throttle } from 'ember-runloop';

default: Ember.Service

import Service from 'ember-service';

default: Ember.inject.service

import injectService from 'ember-service/inject';

default: Ember.OrderedSet

import OrderedSet from 'ember-set/ordered';

camelize: Ember.String.camelize

capitalize: Ember.String.capitalize

classify: Ember.String.classify

dasherize: Ember.String.dasherize

decamelize: Ember.String.decamelize

fmt: Ember.String.fmt

htmlSafe: Ember.String.htmlSafe

loc: Ember.String.loc

underscore: Ember.String.underscore

w: Ember.String.w

import { camelize, capitalize, classify, dasherize, decamelize, fmt, htmlSafe, loc, underscore, w } from 'ember-string';

isBlank: Ember.isBlank

isEmpty: Ember.isEmpty

isNone: Ember.isNone

isPresent: Ember.isPresent

tryInvoke: Ember.tryInvoke

typeOf: Ember.typeOf

import { isBlank, isEmpty, isNone, isPresent, tryInvoke, typeOf } from 'ember-utils';

default: Ember.computed

empty

notEmpty

none

not

bool

match

equal

gt

gte

lt

lte

alias

oneWay

reads

readOnly

deprecatingAlias

and

or

collect

sum

min

max

map

sort

setDiff

mapBy

mapProperty

filter

filterBy

filterProperty

uniq

union

intersect

import computed from 'ember-computed';
import { empty, notEmpty, none, not, bool, match, equal, gt, gte, lt, lte, alias, oneWay, reads, readOnly, deprecatingAlias, and, or, collect, sum, min, max,map, sort, setDiff, mapBy, mapProperty, filter, filterBy, filterProperty, uniq, union, intersect } from 'ember-computed';

default: Ember.Test

import Test from 'ember-test';

default: Ember.Test.Adapter

import testAdapter from 'ember-test/adapter';

default: Ember.Test.QUnitAdapter

import QUnitAdapter from 'ember-test/qunit-adapter';

default: self.jQuery

import jQuery from 'jquery';

default: Ember.RSVP

import RSVP from 'rsvp';
@ro0gr
Copy link

ro0gr commented Apr 23, 2017

import Component from 'ember-componen';

missing trailing "t" in ember-componen

@msalahz
Copy link
Author

msalahz commented Apr 23, 2017

Fixed!, Thanks @ro0gr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment