Download the tgz
file below, and change your npm dependency on ember-source (in config/ember-try.js
or just in package.json
) to 'file:./ember-source-3.28.7-mixonic-explicit-injection-not-deprecated+ae15deb1.tgz'
.
Three things for ember source 4.0, BLOCKS EMBER-CLI 4.0
- Deprecate store injection on route in Ember source 3.28 emberjs/ember.js#19854
- Change error message on ember-source 4.0 for when model.find isn't found emberjs/ember.js#19857 & emberjs/ember.js#19858
- When generating a route (with a dynamic segment), ensure the blueprint output for the route class contains an empty model hook with notes/docs on dynamic segements. emberjs/ember.js#19860
Followup, can be a bit lazy:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
root: 'aa', | |
appName: Ember.computed('root', { | |
get() { | |
return this.get('root'); | |
}, | |
set(key, value) { | |
let newValue = value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import NamedExports from './exporting'; | |
export default Ember.Controller.extend({ | |
appName: NamedExports.appName | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
log: Ember.computed(() => []), | |
open() { | |
this.get('log').pushObject('opened!'); | |
}, | |
didInsertElement() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
function noOverride () { | |
// cannot override | |
} | |
const Parent = Ember.Controller.extend({ | |
init() { | |
this._super(); | |
if (this.__proto__.noOverride !== noOverride) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>set-function-prop-var</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
NewerOlder