Angular 6 Tutorial 16: Login App Part 2

preview_player
Показать описание
This tutorial shows you how to create a complete login application with Angular 6 with working backend code and validation.

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

It should be noted that in order to make use of the php files it is necessary to have a second application that simulates a server on port 1234, although you make the demonstration it is not clear how you do it.

To do this you must download php, enter the "test" folder from the command window, then you must enter the following command: set path="here is the php path without the quotes". To finish you must execute the command: php -S 0.0.0.0:1234.

To avoid the 404 error remember to always execute the npm start command, this error usually occurs when you execute the ng serve command.

Good video, thanks for the explanation. You have my like.

sergiovelasquez
Автор

Proud to be an Indian. Way to go mate.. Awesome videos..

numasoft
Автор

Why havent you used the following code to get the username ? Seems simpler to me


loginUser(event: any) {
event.preventDefault();
const target = event.target;
const username = target.username.value;
...

vincentwichmann
Автор

hey inwhich else video of this series you taught the connection of php file as in my code it is showing auth.php not found

prachijain
Автор

It still shows the below error on VSCode terminal.

php : The term 'php' is not recognized as the name
of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a
path was included, verify that the path is correct
and try again.
At line:1 char:1
+ php -S localhost:1234
+ ~~~
+ CategoryInfo : ObjectNotFound: (php:
String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundExcept
ion

yashsurati
Автор

did you change the file name from file.php to auth.php or it has something to do?

divyanambur
Автор

dont explain well, the php part its a mistery and suddenly appears.

pabloespinoza
Автор

Is it advisable to access DOM elements the way you do i.e. using querySelector or even getElementById?

anuranjansrivastav
Автор

My auth.php is accepting GET request but not POST due to which I am not able to get the message in my console.(Not able to view auth.php in console).
Can anyone please help me out with the issue.
Thanks in advance!

abdulkhaliq
Автор

the auth.php part made me explore and learn more, so not even mad

reljasaurus
Автор

5:36 instead of using php, what we can use? How can I use java there, please help me

Suhas_reddy
Автор

Hi @codedamn I have been following this series, but I want to have make the api call to a flask python file instead for php. Any help with that ?

SwapnilSudhir
Автор

Thanks for the video tutorial. This helped me a lot

abhidas
Автор

Error: -> AuthService]: StaticInjectorError(Platform: core)[LoginComponent -> AuthService]: NullInjectorError: No provider for AuthService! I am getting this error when trying to load the /login page. Please help.

harshat
Автор

Event.target was the Submit button. You were trying to use incorrectly. Also authentication should be done in the routing itself. Anyways thanks, keep up the great work

pradeeppathak
Автор

I am getting error on npm start command. How to fix that issue?

13 verbose stack Exit status 1

vivekshingala
Автор

Hi, I really like your tutorials! But I have a question. I started following your tutorial from number 15, to learn more about authentication etc. But at 5:18 I get stuck because I don't have the auth.php file, not even the /api or /test map it's in... Did I miss something or what do I have to do?
And I also have the problem that it throws an error since I added the AuthService in the constructor of the login component. The error it throws is:
"ERROR Error: Uncaught (in promise): Error:
StaticInjectorError(Platform: core)[HttpClient]:
NullInjectorError: No provider for HttpClient!
Error:
StaticInjectorError(Platform: core)[HttpClient]:
NullInjectorError: No provider for HttpClient!"

robinbakker
Автор

What command should I use instead of "php -S 0.0.0.0:1234" as I am using nodejs

aniketbhelekar
Автор

Php term is not recognised in my cmd..can u tell me any way to correct it

itsTimeToObserve
Автор

Please ReRecord the video. The video full of mistakes. It's makes me a lot confused. I taking hand written notes, but your video forces me to cut all the pages in my notebook.

kabilr