Reusing components

We need a component that can display a given user's information. A natural place for this information to be presented is when the user navigates to /user/profile. You can see the mock-up User profile file:

User profile mock-up

User information is also displayed mocked up elsewhere in the app, at /manager/users:

Manager user management mock-up

To maximize code reuse, we need to ensure that you design a User component that can be used in both contexts.

As an example, let's complete the implementation of two user profile-related ...

Get Angular 6 for Enterprise-Ready Web Applications 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.