Implementing the profile component
In this section, we'll implement the profile component by extending the base component:
- To begin, open the
core/index.ts
file and export the profile service using the following syntax:export { ProfileService } from '../users/services/profile/profile.service';
- Open the
users/components/profile/profile.component.ts
file and add the imports as follows:import { Component, ElementRef, Injector, ViewChild } from '@angular/core'; import { ActivatedRoute, ParamMap } from '@angular/router'; import { User } from '@ngsocial/graphql/types'; import { User as UserModel } from 'src/app/shared'; import { Maybe } from 'graphql/jsutils/Maybe'; import { Subject } from 'rxjs'; import { take, takeUntil, switchMap...