Hey in this blog I will talk about what is Angular JS so keep reading and you will know how it works.
So let’s understand what Angular JS is.
Angular JS, your thoughts in the comment section down below.
Angular JS is a JavaScript MVC (Model View Controller) framework that you can use to develop a single-page application. Angular JS was originally developed by Google team but now it is an open-source framework which means anyone can contribute to the development of this Platform.
To build Applications on Angular JS you need to have knowledge of HTML and JavaScript. So you don’t need to learn other languages to build a project on Angular JS.
And Angular JS is commonly called as “Angular”
Angular JS helps to change static HTML to Dynamic HTML by adding built-in components and attributes. With the help of Angular JS, you can also build custom attributes by using JavaScript.
Angular is a component-based front end framework. In Angular, you can create reusable components, and to build component you only need to worry about a template and some sort of data that needs to fill that Template. You can also find ready to use angular templates to make your time easier.
You can also create components in isolation you can use them all over the place and it really helps when you develop large-scale applications.
Important Features that Angular provide
Client-side Routing.
Angular use Client-side routing over server-side routing. This means when you click on the navigation bar of a website to go to a different page then Angular will not need to go to the server to get the files or the data for that page. In simple words, you don’t have to make tons of requests to your server to get the templates or the JavaScript. So that can be very helpful.
Dependency injection
Angular has a built-in dependency injection. It allows you to unit test because any time your unit test let’s say a component which you can really call module you want to make sure that, that module which typically depends on other outside modules. So for example, if you have one module that needs an HTTP module that makes HTTP requests well if I want to test this service here in isolation but it depends on an outside module then I can’t do that you know I have to do something with that module so what dependency injection allows you to do is the dependency injection activator or a thing that goes out and pulls that service in and provide it for your module. Well, you can tell it to mock it in a unit test, and in production, you could tell it to give it the actual module.
Advantages of Angular JS.
- It is maintained by Google.
- No need to learn another language. You can simply use HTML and JavaScript.
- Easy to extend and customize.
- Built-in dependency injection.
- Very easy to unit test.
So that’s all from this blog I hope you like it and if you did then don’t forget to share this blog with your friends. You can also share your thoughts in the comment section down below.
Be the first to comment on "A JavaScript Framework Angular JS"