AngularJS

AngularJS-huge I’ve heard a lot about AngularJS and decided to learn it along with my brushing up on the JavaScript basics.

Angular’s website says that it is “what HTML would have been, had it been designed for applications.” It supposedly helps build one-page web applications or single page applications (SPA’s) much better than most other JavaScript libraries and/or frameworks. It was built with the CRUD (create, Read, Update, Delete) application in mind.

Again, I want to keep my notes here on my blog because it 1) always helps to solidify the knowledge in my head, 2) will help me find things in the future, and 3) might help someone else.

It’s easy to get started. Just download the very small angular.js file and add it to your HTML file the way you would any other JavaScript file. Add ng-app to the opening html tag and then have angular bind something by using the double curly braces ({{ "angular code" }}), often called ‘mustaches’.


<html ng-app>
  <head>
    <script type="text/javascript" src="angular.min.js"></script>
  </head>
  <body>
    This is the new {{ "Hello World!" }}
  </body>
</html>

It’s just that easy!

Disclosure: Some of the links on this site are “affiliate links.” This means if you click on the link and purchase the item, I will receive an affiliate commission.

Leave a Reply

Your email address will not be published. Required fields are marked *