aro Learning ({AnquarJS)} with Examples-Part2| Code Wala
Learning {{AngularJS}}
with Examples—Part 2
Posted on June 3, 2014 by Brij
In the last post , we learnt about the basics of AngularJS and created a simple hello world
application. You can refer the link of my earlier post.
Learning {{AngularJS}} with Examples-Part 1
We have discussed the basic components of AngularJS that we used in our last post. As we
discussed that AngularJS is a complete framework for writing client side code that allows us to.
use latest design principles, there are many important components. Let's see some of the
important ones
i
iin”
iE
There could be few other components and concepts of AngularJS that is not part of the above
catatexthiml:charset=ut-8,960Cheader'i2iclas GD Z2erry header kZZZOstleMaD 6 2zborder%e3A%-200pxIBAOIOrfamlysesAKAOHelveCarIC.... 1282015 Learing((gdari) with Examples-Part2| Code Wola
image but it includes all that we need to lear to built up the foundation on AngularJS. I'll be
discussing all the mentioned components in the series of posts with tons of example
Let me tell you the color coding briefly. The dark blue color shows that we have discussed it
that in our last posts. Other two highlighted items will be discussed in today's post. And items
with light blue color will be covered in coming post.
In today’s post, we'll take a step further and discuss some more concepts of AngularJS. In our
example , we'll provide a structure to our application which is the beauty of AngularJS. In last
post, we created a Hello World application, which used a controller and ng-app directive was
used to bootstrap the application
One of the most common tasks in the web applications is, to show the data the tabular format
and angular does kept it in mind. If you've worked earlier on some client side templating
features then you will find it similar to that. Else also it is very simple and easy to understand.
Angular provides a way to repeat the some part of HTML based on the provided list of data. So
we can have code like
We need to include all the controller and module JavaScript files to our page that we created.
Now, we don't have any JavaScript code on our page
Now when we run the page, we get the similar output, that we got initially Refer third figure
from Top.
So in this post, we discussed about some new directiveng-init, ng-repeat. Then we discussed
and new component module and converted the application in properly structured manner.
In next post, we will about ASP.NET MVC and AngularJS and create some examples using
both.
To navigate to previous and next post of the series, use the links at the bottom of the page
Cheers,
Brij
catatexthiml:charset=ut-8,969Cheader'iZoclass 3D Z2erry header kZZZOsIleMID 6 2zbarcer%e3A%-200px IB AOIOrMamilyiesAKOHelveCaNIC.... GE