Angular 7 Tutorial Part 4 - Login Form, Authentication Service & Route Guard

preview_player
Показать описание
In part 4 of this Angular 7 tutorial series we're going to implement authentication with a login form, authentication service and an Angular route guard. We'll also setup a fake backend so we can test the example application without an API.

OTHER PARTS IN ANGULAR 7 TUTORIAL:

Рекомендации по теме
Комментарии
Автор

I have used the above program but getting the error Argument of type 'string | null' is not assignable to parameter of type 'string'.
Type 'null' is not assignable to type 'string'.ts(2345)
var localStorage: Storage in authetication.service.ts. Please help what needs to be done

anjanas_acedamy_at_Reckon
Автор

Guru ji... Thanks for you extraordinary work.. you are my teacher in angular

prasanthkolanchi
Автор

Exactly what I was looking for. Thank you so much.

kopalsoni
Автор

error: Argument of type 'string | null' is not assignable to parameter of type 'string' in authentication.service.ts

ankitanand
Автор

React without redux jwt authentication using typescript video sir

harishsriram
Автор

This a greate toturial .. but i am facing a small issue..
the issue is (config is not defined) at this.http.post<any>(`${config.apiUrl}/users/authenticate`,
our webpack.config.js is not binding with our project

muhammadmutahar
Автор

one more error - error TS7006: Parameter 'password' implicitly has an 'any' type.

20 login(username, password) {

anjanas_acedamy_at_Reckon
Автор

There is no .less or .css file in components. How did styles applies in form ?

tamilmani
Автор

And how can it be with a footer? I did a project with login method, when I login the header and footer appears, but when I logout, just the header disappears but the footer no, when I refresh thw browser the footer dissapears, the method of login with *ngIf isLoggedIn() I have it in the header component, I don´t know if it is because the method don´t arrive completly to the footer component. Please if you can help, tell me something, if you want I hace my project on Gitlab

mathiasmartinez
Автор

how to create multiple users in one login page based on sessions

harikiranyarramilli
Автор

very informative. keep doing more videos

kalki_onwheels
Автор

mate, with web api using .net core, i get "unknown error " with authenticate any idea??

downunder
Автор

I got "config is not defined" in authentication.service.ts. Please help

kustv
Автор

Thanks a million, Jason! Great video! You are doing amazing tutorials! Better than paid Udacity courses! P.S. Don't get me wrong, but sound of mac keyboard clicks are very noisy sometimes in your videos. I am not sure if you can do something about it =) Thanks!

SlavaTravelsSometimes
Автор

is there a wat to retrieve the users that are registerd?
or are they being put into any array?

devonneill
Автор

do you have a discord-channel? would be cool.

zone