The LoginExternalProvider component

It's time to hop into Angular. From Solution Explorer, right-click to the /ClientApp/app/components/login/ folder and add a new login.externalproviders.component.ts file with the following content:

import { Component, Inject, OnInit, NgZone, PLATFORM_ID } from "@angular/core";import { isPlatformBrowser } from '@angular/common';import { HttpClient } from "@angular/common/http";import { Router } from "@angular/router";import { AuthService } from '../../services/auth.service';declare var window: any;@Component({    selector: "login-externalproviders",    templateUrl: "./login.externalproviders.component.html"})export class LoginExternalProvidersComponent implements OnInit {    externalProviderWindow :any; constructor( ...

Get ASP.NET Core 2 and Angular 5 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.