O'Reilly logo

Getting MEAN with Mongo, Express, Angular, and Node by Simon Holmes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix C. Dealing with all of the views

This appendix covers

  • Removing the data from all views, except the homepage
  • Moving the data into the controllers

Chapter 4 covers setting up the controllers and the views for the static, clickable prototype. The “how” and “why” are covered in that chapter in more detail, so this appendix will really focus on what the end results should be.

C.1. Moving the data from the views to the controllers

Part of this includes moving the data back down the MVC flow from the views into the controllers. The example in chapter 4 deals with this in the Loc8r homepage, but it needs to be done for the other pages too. We’ll start with the Details page.

C.1.1. Details page

The Details page is the largest and most ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required