This file contains hidden or 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', | |
number1: 0, | |
number2: 0, | |
actions: { | |
updateName1(nameField) { | |
// nameField is a reference to the input-field | |
// the inptut value is in target.value |
This file contains hidden or 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 moment from 'moment'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
availableDates: [ | |
new Date(2016,6,25), | |
new Date(2016,6,27), | |
new Date(2016,6,29) | |
], |
This file contains hidden or 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({ | |
doubleClick() { | |
let person = this.get('person'); | |
let handler = person.handler; | |
handler(person.firstname); | |
} | |
}); |
This file contains hidden or 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
select * from luxair_coupons where coupon_code like 'B080334%'; | |
Liefert | |
-[ RECORD 1 ]--------------+--------------------------- | |
id | 314 | |
coupon_code | B080334 | |
booking_id | 3319963 | |
created_at | 2016-02-18 14:04:04.029521 | |
updated_at | 2016-02-18 14:04:04.029521 | |
firstname | Daniéle |
This file contains hidden or 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
select * from luxair_coupons where coupon_code like 'B080334%'; | |
Liefert | |
-[ RECORD 1 ]--------------+--------------------------- | |
id | 314 | |
coupon_code | B080334 | |
booking_id | 3319963 | |
created_at | 2016-02-18 14:04:04.029521 | |
updated_at | 2016-02-18 14:04:04.029521 | |
firstname | Daniéle |
This file contains hidden or 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', | |
developer: 'Esma', | |
year: 2016, | |
counter: 0, | |
actions: { | |
up() { | |
const counter = this.get('counter'); |
This file contains hidden or 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 { get } = Ember; | |
export default Ember.Controller.extend({ | |
events: [], | |
actions: { | |
changed(message1, message2) { | |
get(this, 'events').pushObjects([message1, message2]); | |
} | |
} |
This file contains hidden or 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 Weekend', | |
actions: { | |
save() { | |
const person = { | |
firstName: this.get('firstName'), | |
lastName: this.get('lastName'), | |
}; |
This file contains hidden or 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({ | |
heute: '16.04.2016' | |
}); |
This file contains hidden or 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({ | |
}); |