Ember Examples
Data Down / Actions Up
Plain JSBin's
Ember Version Base JSBin's
Other
{{link-to}} (dynamic route name and variable dynamic segments). Works on 2.1.1+.owner._lookupFactory (or container.lookupFactory) and still control manual object creation.<input>attributeBindings.{{#each.POJO's
Routing
{{route-action}} helperService
Ember.inject.service demo ("logger" service).
generateEventedServiceFor -- Generates a mixin to subscribe to services events.View
HTMLBars
{{for-each-color}}{{else <some helper>}}{{bind-action}} helper to pass a wrapped action as a block param.{{bind-action}} helper + multi-level action passing.<div class={{specialColor}}></div> bind-attr less attribute binding.{{bind-attr}} (requires 1.11 or greater).is-last sub-expression / helper.hasBlock polyfill{{each-in}}), and have mutable input (mut and get) for each.SubExpression (v-get) into PathExpression.data-test).Components
RadioButton componentviewName to access a sibling view/component's Id.key-up and key-down with {{input}}.<input> without {{input}} via improved actions...Handlebars Helpers
{{super}}Ember.Helper recompute on array length/property changes.parse-int helperEmber.Helper recompute on array lenght changes. get-at-index helper.Select
{{async-select}} - Pretty simple, but handles initialValue, prompt, and options.Controllers
Testing
ember.prod.js)moduleForComponent integration test.eq helper with moduleForComponent.assert.currentURLEqual to QUnit.assert.Plain HTML:
Plain Javascript:
Babel Plugin:
htmlbars-inline-precompile babel plugin