Answer the question
In order to leave comments, you need to log in
Angular + PHP I don't understand what's the problem?
Hello.
Tell a beginner, there is a simple form that should work through PHP server
example: metanit.com/web/angular/3.8.php
When I try to reproduce this on my local computer. When you click on save, the page is refreshed and all data simply disappears.
(Angular put simple scripts to work) I can't figure out how to pass a json object from a form to PHP and back.
What am I doing wrong(
Answer the question
In order to leave comments, you need to log in
If the page just refreshes, then it looks like your JS form submit handler is not firing. Are there any errors in the developer console? Is Angular really connected?
Thanks Kirill. Understood the error was in the controller in the name. Initially, I was looking in the wrong place)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question