Chapter 1. Powering your next ambitious web application
Listing 1.1. Creating links in the index.html file
Listing 1.2. Overriding the application template
Listing 1.3. Defining the application’s router
Listing 1.4. Defining the application’s routes
Listing 1.5. Adding a template, input field, and button
Listing 1.6. Creating the NotesController
Listing 1.7. Initializing Ember Data
Listing 1.8. Adding a binding
Listing 1.9. Creating the list of notes
Listing 1.10. Linking each note to the notes.note route
Listing 1.11. Adding an outlet to the notes template
Listing 1.12. Adding the notes.note template
Listing 1.13. Highlighting the selected note
Listing 1.14. Adding a button to the notes/note template
Listing 1.15. Adding a NotesNote controller to update the note
Listing 1.16. Adding a Delete button to the notes template
Listing 1.17. Adding the doDeleteNote action to the NotesController
Listing 1.18. Adding a template for the modal panel
Listing 1.19. Rendering the confirmDialog template
Listing 1.20. Implementing the doCancelDelete and doConfirmDelete actions
Chapter 2. The Ember.js way
Listing 2.1. Synchronizing two variables using bindings
Listing 2.2. Revisiting the notes/note template
Listing 2.3. Creating the introduction computed property
Listing 2.4. Showing the introduction computed property in the notes template
Listing 2.5. Using computed properties as setters
Listing 2.6. Observing the length of a controller to control a timer