Use a custom key in package.json:
alternateDependencies: [
{ "ember": "1.8.1" },
{
"ember": "1.12.0-beta",
"handlebars": false,
| import DS from "ember-data"; | |
| function ensureRoot(rootName, payload) { | |
| var result; | |
| if (payload[rootName] == null) { | |
| result = {}; | |
| result[rootName] = payload; | |
| } else { | |
| result = payload; |
Off the top of my head, a UX team needs to collectively have the following talents. No one person will know all of these, nor would I expect someone who is learning something in the Advanced category to have fully mastered everything above. Paths vary.
Enough to poke at things and learn more
I had some trouble getting Ember-CLI and Ember-Data working with my existing HTTP API. These are the things I had to do to get it working:
My API returns underscored_keys, not camelizedKeys. It's not exactly the standard ActiveModel, but it's quite similar. I started by defining a default (application) serializer that's a simple subclass of DS.ActiveModelSerializer:
// app/serializers/application.js
import DS from "ember-data";I just signed another year lease on my apartment, so I figured if I have another year here, I might as well try to improve my Internet service and/or price. I really dislike how my current provider, Comcast, is opposing Net Neutrality, so I looked around for altneratives. Nope, still just Comcast and AT&T. Monopolies :(
So I went to comcast.com. Ooh, neat! They have a promotion on Internet that would cut my rate way down. I signed in. "This is a business address. For business service, call us or enter another address." I clicked "enter another address," hoping they just had my address wrong. That link takes me back to ""This is a business address. For business service, call us or enter another address." So much for a usable website.
OK, fine, I'll call. After a couple minutes of playing verbal and key-based phone tree, I get a very nice customer service agent. I ask him what plans are available in my region. He looks for a minute and says, "We have a promotion to add voice, give you the same Internet servic
Ember-I18n declares the following dependencies:
"cldr": "^1.0",
"jquery": ">=1.7 <3",
"handlebars": "^1.0",
"ember": ">0.9.7 <2"What is the expected behavior of the following code?
var Superclass = Ember.Object.extend({
logOnInit: function() {
console.log('Superclass#logOnInit');
}.on('init')
});
var Subclass = Superclass.extend({In Ember 0.9, we had properties that looked like
age: function() {
return this.get('createdAt') - new Date();
}.property('createdAt').volatile()The .property('createdAt') means, "recompute this every time createdAt changes".
| Object.class_eval do | |
| def >>(callable = nil, &block) | |
| raise ArgumentError.new('>> takes a callable or block') unless callable.nil? ^ block.nil? | |
| (callable || block).call self | |
| end | |
| end | |
| Enumerable.class_eval do | |
| def >>(callable = nil, &block) | |
| raise ArgumentError.new('>> takes a callable or block') unless callable.nil? ^ block.nil? |