Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular js is front end or backend?

Tags:

angularjs

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 ???

like image 616
Sarooj Bukhari Avatar asked Dec 06 '22 14:12

Sarooj Bukhari


2 Answers

Angularjs is a front-end framework powered by JavaScript. Even you have said that in your introduction.

From the docs,

Why AngularJS?

HTML is great for declaring static documents, but it falters when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop.

Other frameworks deal with HTML’s shortcomings by either abstracting away HTML, CSS, and/or JavaScript or by providing an imperative way for manipulating the DOM. Neither of these address the root problem that HTML was not designed for dynamic views.

AngularJS is a toolset for building the framework most suited to your application development. It is fully extensible and works well with other libraries. Every feature can be modified or replaced to suit your unique development workflow and feature need.

like image 184
zaidfazil Avatar answered Jan 19 '23 20:01

zaidfazil


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.

like image 34
Emma piterson Avatar answered Jan 19 '23 20:01

Emma piterson