Skip to content

Instantly share code, notes, and snippets.

@danfinlay
Last active April 26, 2017 12:36
Show Gist options
  • Select an option

  • Save danfinlay/e9a255afccf159403558 to your computer and use it in GitHub Desktop.

Select an option

Save danfinlay/e9a255afccf159403558 to your computer and use it in GitHub Desktop.
Reserved words in Ember & Ember Data

I've run into a number of words you can't use in Ember, and I want to keep track of them so others don't use them in the future. Here's my list to date:

  1. data
  2. currentState
  3. state
@MichalBryxi
Copy link

MichalBryxi commented Apr 26, 2017

I'm also fighting with Ember-2.12.2 (not saying that this version introduced the change) disallowing attrs as a property on controllers. Worth updating the gist? Is there any changelog stating so?

// route.js
setupController(controller, model) {
  controller.set('attrs', 'foo');
  controller.set('bar', 'bar');
}

// template.hbs
{{log "attrs: " attrs ", bar: " bar}}
// outputs to console: attrs: undefined, bar: bar

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