Company details

Probably, you have already observed that earlier, when we listed all the companies, we created some nice URLs. We are going to use that path to display all the details of a company together with the available jobs.

The URL also contains the company slug, which is a URL-friendly representation of the company name. It has no benefit for the user, it's just URL sugar we added to display the name of the company nicely. Only the company ID is used when querying the backend for data.

As we have all the necessary components and services, we can implement our details component by following these steps:

  1. Create a new file, called public/src/company/components/company-detail.component.ts.
  2. Add the necessary dependencies:
    import { Component, OnInit ...

Get MEAN Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.