Category : angular

For some reason my mind is wrapping around what the problem is here. I am using Angular with a PHP mysql database. I have done console.log for basically every step of the way and it seems to be working, but the textboxes won’t display the information that is already inserted into the database. This form ..

Read more

im using php backend to read data out of mysql db on the server. I want to get the data in angular and save it in a variable so i can do simple stuff like displaying it. How can i make something similar to a getter/setter here to read the json? (browser shows database request ..

Read more

I’m trying to log in or register in my Angular app, but whenever I access to the php file which does the HTTP calls to the DB regarding users (authentication.php), I get three errors: Access to XMLHttpRequest at ‘http://localhost/authentication.php?command=login’ from origin ‘http://localhost:4200’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the ..

Read more

I have: Angular version 11.0.5. Laravel version 8.18.1. For Canvas i used Fabricjs "fabric": "^4.3.1", "@types/fabric": "^4.2.2" For laravel CORS: I used "fruitcake/laravel-cors": "^2.0", Here is the Laravel configuaration: Kernal.php protected $middleware = [ FruitcakeCorsHandleCors::class, ]; protected $middlewareGroups = [ ‘web’ => [ ], ‘api’ => [ ‘throttle:api’, FruitcakeCorsHandleCors::class, ], ]; config/cors.php ‘paths’ => [‘api/*’, ..

Read more

i´ve got a question about how to best implement a ("simple" because im not a pro) connection to a existing mysql database (on webserver) with Angular. Since I looked through the internet for days now. I only need to check trough a form group in a existing DB if username with e-mail is already in ..

Read more