'object' does not contain such a member Angular 5
问题 I am new to Angular and trying to make a small application. I referred 'object' does not contain such a member answer but I am not getting my solution from there. profile.component.ts import { Component, OnInit } from '@angular/core'; import { AuthService } from '../../services/auth.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-profile', templateUrl: './profile.component.html', styleUrls: ['./profile.component.css'] }) export class ProfileComponent implements