LoginComponent

Back to Solution Explorer, create a new /ClientApp/app/components/login/ folder and fill it out with the following login.component.ts file:

import { Component } from "@angular/core";@Component({    selector: "login",    templateUrl: "./login.component.html"})export class LoginComponent {    title = "Login";}

Also, put in the login.component.html template file:

<h2>{{title}}</h2><div>    TO-DO: Not implemented yet.</div>

As we already said, this is just a placeholder; there’s no way we can implement a proper login view or any authentication mechanism now, as we’re still missing a real, persistent Data Source. If we have the urge to mock it out, we can arrange something similar to what we did in Chapter 2, Backend with .NET Core. There’s ...

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.