- #1199: simd-infrastructure well It is being rethout so the implementation will be written before stabilize, possibly with a new rfc.
- #1214: projections-lifetimes-and-wf
- #1331: grammar-is-canonical
- #1358: repr-align
- #1398: kinds-of-allocators
- #1432: replace-slice
- #1566: proc-macros
- #1576: macros-literal-matcher
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', | |
someInput: '', | |
anotherThing: '', | |
count: 1, | |
doFoo() { |
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'; | |
const { Component, RSVP } = Ember; | |
export default Component.extend({ | |
actions: { | |
doFoo(bar) { | |
return RSVP.resolve(bar).finally(() => { | |
console.log(`did foo with bar ${bar} in A`); | |
}); |
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'; | |
const { computed, Controller, get, isNone, set } = Ember; | |
const describe = (value) => | |
isNone(value) | |
? '`undefined` or `null`' | |
: value === '' | |
? '<empty string>' | |
: 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'; | |
const { computed, get, set } = Ember; | |
export default Ember.Component.extend({ | |
toChange: undefined, | |
saved: undefined, | |
model: undefined, | |
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', | |
foo: undefined, | |
bar: null, | |
quux: ['yay', 'hey'], | |
baz: 'string', | |
}); |
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'; | |
const { computed, Component, get, run } = Ember; | |
export default Component.extend({ | |
role: 'alert', | |
message: null, // passed in | |
classNameBindings: ['messageTypeClass'], | |
messageTypeClass: computed('message.type', function (): string { |
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
export namespace Foo { | |
export const bar: boolean; | |
export const quux: (a: boolean) => string; | |
} | |
export default Foo; | |
export const baz: string; |
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', | |
init() { | |
this.set('foo', 'this is more than 10'); | |
} | |
}); |
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 class NotGood extends Ember.Component { | |
init() { | |
Ember.set(this, 'tagName', ''); | |
super.init(...arguments); | |
} | |
} |