- Add application.hbs
- Add app.css
- Extract post-tile out into a template-only component
-
{{markdown-to-html}}
helper- Ember.String.htmlSafe
- Introduce index, posts routes (fixture data in posts)
- Introduce posts/show and posts/index routes
- Link-to to navigate between posts
- Post-list component, two-way bound to input helper
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
/** | |
* Orient the water nozzle and spray for 30 seconds | |
* | |
* @param theta nozzle horizontal rotation angle | |
* @param phi nozzle vertical angle | |
* @param pressure water pressure | |
*/ | |
async function extinguish(theta, phi, pressure) { | |
await aimHose(theta, phi); |
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 Twiddleeee' | |
}); |
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' | |
}); |
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 class extends Ember.Controller { | |
@controller('other') other | |
constructor() { | |
super(...arguments); | |
this.appName = 'Ember App'; | |
} | |
} |
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 Controller from '@ember/controller'; | |
export default class ApplicationController extends Controller { | |
@service('currentUser') currentUser; | |
constructor() { | |
super(...arguments); | |
this.appName = 'foo'; | |
} | |
} |
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', | |
init() { | |
this._super(...arguments); | |
const thingWasRegistered: Ember.getOwner(this).lookup('loldata:cats'); | |
this.set('word', thingWasRegistered.sound); | |
} | |
}); |
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({ | |
}); |
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', | |
init() { | |
this._super(...arguments); | |
this.set('myArray', []); | |
this.set('x', 3); | |
this.set('arraySum1InvocationCount', 0); | |
this.set('arraySum2InvocationCount', 0); |