concept Details page in category angular

This is an excerpt from Manning's book Getting MEAN with Mongo, Express, Angular, and Node.js 2ED.
Making a quick sketch like figure 2.9 is the first stage in planning, and you need to go through this stage before you can start thinking about architecture. This stage gives you a chance to look at the basic pages and think about the flow. Figure 2.9, for example, also shows a basic user journey in the Locations collection, going from the List page to a Details page and then to the form to add a review.
Listing 4.7. View for the Details page, app_server/views/location-info.pug
extends layout block content .row.banner #1 .col-12 #1 h1 Starcups #1 .row .col-12.col-lg-9 #2 .row .col-12.col-md-6 #2 p.rating i.fas.fa-star i.fas.fa-star i.fas.fa-star i.far.fa-star i.far.fa-star p 125 High Street, Reading, RG6 1PS .card.card-primary #3 .card-block #3 h2.card-title Opening hours #3 p.card-text Monday - Friday : 7:00am - 7:00pm #3 p.card-text Saturday : 8:00am - 5:00pm #3 p.card-text Sunday : closed #3 .card.card-primary #4 .card-block #4 h2.card-title Facilities span.badge.badge-warning i.fa.fa-check #4 | Hot drinks #4 | span.badge.badge-warning i.fa.fa-check #4 | Food #4 | span.badge.badge-warning i.fa.fa-check | Premium wifi | .col-12.col-md-6.location-map .card.card-primary .card-block h2.card-title Location map img.img-fluid.rounded(src= 'http://maps.googleapis.com/maps/api/.............. #5 staticmap?center=51.455041,-0.9690884&zoom=17&size=400x350 #5 &sensor=false&markers=51.455041,-0.9690884&scale=2&key=<API Key>') #5 .row .col-12 .card.card-primary.review-card .card-block a.btn.btn-primary.float-right(href='/location/review/new') Add review #6 h2.card-title Customer reviews .row.review .col-12.no-gutters.review-header span.rating i.fas.fa-star i.fas.fa-star i.fas.fa-star i.far.fa-star i.far.fa-star span.review Author Simon Holmes small.review Timestamp 16 February 2017 .col-12 p What a great place. .row.review .col-12.no-gutters.review-header span.rating i.fas.fa-star i.fas.fa-star i.fas.fa-star i.far.fa-star i.far.fa-star span.reviewAuthor Charlie Chaplin small.reviewTimestamp 14 February 2017 .col-12 p It was okay. Coffee wasn't great. .col-12.col-lg-3 #7 p.lead | Starcups is on Loc8r because it has accessible wifi and space to sit down with your laptop and get some work done. p | If you've been and you like it - or if you don't - please leave a review to help other people just like you.
You’ll start by creating the missing pages and functionality, and see how to use URL parameters in routes, including using them when querying the API. When you’ve got most of the functionality in place, you’ll build the form to add new reviews, but rather than have a separate page as you had in Express, you’ll include the form inline and be able to add reviews without leaving the Details page. This technique is an SPA way of doing things and eliminates extra round trips to the server. When everything’s running, you’ll look at a couple of ways to improve the architecture to follow some Angular and TypeScript best practices.