Angular js is front end or backend?

Viewed 37318

i just want to know that is it Angular js is a front end or back end language.because sometime time behaves like back end..and should we use angular as a front end and php as a back end instead of node js ???

4 Answers

I think it all boils down to what is a front-end technology, the part where the user will have most of the interactions with. And because these interactions are done with the help of the browser, and browsers mostly understand HTML, CSS and javascript.

So the creators of Angular made a framework that is based on typescript, which can generate HTML, CSS and javascript code with the help of transpilers, for the purpose of generating a workable package that can be understood by a browser.

That’s why Angular is considered a frontend framework. Its capabilities do not include any of the features that you will find in a backend language.

Angular 4 is front-end framework Powered by Google, it helps a lot in making fastest single page application and works 100% perfect.

Your question is that, Can we use PHP as Back-end?

The answer is simple.Yes, with the help of HTTP service and using PHP API. You can make a database on MYSQL and built logic using PHP and this can be easily accessed on Angular 2/4 app with the help of Service HTTP request. Either you using PHP frameworks like Laravel or Codeignitor then this will also work too.

AngularJs or Angular2+ (a complete new writeup of the AngularJS) they are created for building a complete user interfaces for the application users.

Sorry you can't use Angular2+ or Angular JS for the backend as a framework !

Related