Ashish Sahu
Ashish Sahu

Reputation: 21

How to Integrate angular 2 with php and mysql db

How can we integrate Angular 2 using MySQL database and php for database connectivity ?? As angular 2 and XAMPP using the different ports.

so please help me to give approach to work with back end and angular 2(front end).I am new in angular 2.

Upvotes: 1

Views: 2104

Answers (1)

achimha
achimha

Reputation: 325

Angular has the Http class to perform AJAX calls to your backend. On the PHP side you need to handle those (typically REST) calls and implement your business logic. You can either use a full blown PHP framework such as Symfony or Laravel or a mini framework (basically a request router) such as Lumen or Slim.

Upvotes: 1

Related Questions