Now first of all we’re going to discuss about the below things.
- What is Angular JS?
- Why Should We Use It?
- How Should We Use It?
So what is Angular JS?
We can compare now with some other MV* framework like “knockout or backbone”. We’ll discuss here the difference, also what is the main key that makes this framework apart from the crowd. Angular is not just a MV* framework opiniant MV* framework. Like with js we need the DOM all the time. But in Angular we’ll be needing DOM only in directives where you can also use other JS libraries, jQuery etc. Ok now don’t be in so much rush. We’re going to know about MV* framework for sure. I think this is the time we should know about it.
Now why should we use it?
In this question we can say that it’s an open source library build by a skilled team of Google. All the source are maintained by those developers. So in any case you don’t need to worry about it’s stagnate & bugs. There are & will be some excellent developer team to support you all the time. In fact you can have some respect by contributing Angular libraries as it’s open source. Now as far as I know there are over 200 unique Angular JS contributors to its Angular JS Github repository. There are 43 public repo’s of Angular contributors. You can see them by visiting Angular JS Github Contributors page.
Angular is also Comprehensive. Now you might be thinking about how it’s comprehensive? Just see the picture below.
Angular handles visiting page through Routing. This is the key piece in building a single page application. This way you can completely use the view based on your user interface. Angular will also update the url so that the new page can be bookmarked for sync later. The one thing basically all the MV* frameworks do is extend the html vocabulary.
Wow now you might be thinking where did that came from? Basically Angular actually teaches HTML elements some tricks to do much better in web application. This is called the Directives. We’ll be discussing about directives in my other article. For now Angular thinks HTML as a great thing to manipulate & view the user according to your wish. Let’s see the picture below.
Here we can see some html input boxes. But in the first box see there is a custom attributes called focus. Think again if we want to tell html to show the input field with some focus we can do this by writing some scripts which will take focus keyword & shows some blur thing or something in client side. But HTML5 already did that. So HTML5 is also thinking something like that. Now if we think about the second text box you can see that there’s a text box which is not defined. Let us think it broadly. If you think about some dashboard thing or display widget. This will actually displays some data in a specific manner. I just have to insert some user object within this user property in my custom tag. This can be done by Angular JS. Angular will take this user tag & then convert it into a HTML so that browser can render. There’s the power comes within Angular.
Now How to use Angular JS?
That’s it for today. Stay tuned for some more interesting articles on Angular JS. Hope you’ll like the article and also made you understand about Angular. Stay with me I’ll let you fall in love with this beautiful framework.
Learn Angular JS in a simplest way Part-1
An enthusiastic of work with over 2+ years of experience. Extensively experienced on wordpress, Codeigniter, Laravel.
##Visit my github page (https://github.com/ashawkat)
##Visit my blogging page where I spread out my knowledges around all other people (http://w3programmers.com/author/tanim)
If you want to hire me then you can contact me via email or skype.
Email: [email protected]