This chapter covers
- Setting up Express to deliver a single-page application
- Best practices for organizing code in a large Angular application
- Using Angular to do the URL routing instead of Express
- Combining and minifying several Angular files into one
We saw in chapter 8 how to use Angular to add a component to an existing page. Over the next two chapters we’re going to take Angular to the next level and use it to create a single-page application. This means that instead of running the entire application logic on the server using Express, we’ll be running it all in the browser using Angular. By the end of this chapter we’ll have the framework for an SPA in place, and have the first part up and running by using Angular to route to the homepage and display the content.
Figure 9.1 shows where we’re at in the overall plan, recreating the main application as an Angular SPA.