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 no need to do that yet, however, since we’ll start implementing the real deal in the following chapter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.83.96