would an api be considered backend
PHP is server-side. Basically, Angular handles all the viewing etc inside the browser and on the same page, sending requests to the backend API (e.g created via PHP) to handle database requests and so forth. Angular and PHP serves two completely different functions and can be used together, not in place of one another.