Introducing AngularJS [Video]

Whether you aim to work on a complete single-page application or intend to use Angular to handle one page at a time, this course will give a good introduction to the various components of Angular. It is targeted at beginner or intermediate developers who wish to move forward quickly while caring for the quality of their code.Users will need basic knowledge of javascript and HTML as well as the JSON notation. Understanding of asynchronous javascript concepts such as AJAX would be helpful.

About This Book

Build a full featured single-page web application with clean structure up to the standards of a real-life projectA faster, more pleasant coding experience for developers, focusing on actual logic and avoiding repetitive tasks such as code scaffoldingEnsure that the application will be easy to maintain, extend, modify, debug, and test using AngularJSLearn about every aspect of Angular applications: views, logic, data layers, and configuration to build a dazzling app

Table of Contents

GETTING STARTED WITH AN ANGULAR PROJECTCONTROLLERS AND TEMPLATESUSER INTERACTIONS AND DATA BINDINGAPP ROUTINGLOADING EXTERNAL DATAINTRODUCING SERVICES

What You Will Learn

Kick-start your application in minutes by scaffolding it entirely with YeomanBuild a dynamic page and render lists of items in one line of codeProgram Reactions on user-interactions such as clicks, selection change, blur, and moreEasily validate data present in forms, from simple required fields to complex custom form validationEfficiently handle routing between different pages of an applicationLoad data from external sources in the background by using AJAX calls with AngularMaster the use of performing actions asynchronously by creating worker threads

In Detail

AngularJS is a Google-backed javascript framework that simplifies the development of single-page applications and other web page javascript widgets. It is one of several modern frameworks that are revolutionizing web development by bringing a fresh, more professional orientation to application building. Developers will love working with the framework, which allows them to focus their time on actual logic, instead of having to deal with repetitive tasks such as rendering and event binding.

Introducing AngularJS will show you how to build a complete application in a very short time, yet without cutting corners that would be detrimental to code quality. We will take you through a concrete application, a movie library app, one step at a time, in order to introduce the concepts behind all the moving parts of an AngularJS application.

We will start by quickly scaffolding an entire application's structure using Yeoman. This will lay the foundations of our application in a well-structured manner. Then we'll focus on displaying data and allowing the user to interact with the application, and how can Angular help us handle rendering and events binding, so we can focus more on the app logic itself. We'll peek into templates and controllers, and will see how Angular's declarative nature makes it obvious which element is in charge of which functionality.

We will then introduce a second view to the application, and show how to handle routing between the two views, including reading parameters from the URL and how we can very quickly create new routes with the companion tool Yeoman.

You will also learn how to load data from an API using AJAX, both from the same server as the app, as well as from an external source. Finally, we will close by introducing services that are Angular data-layer singleton objects as well as building a client-side data persistence using LocalStorage.

Introducing AngularJS will guide you through all the aspects of an Angular application, start-to-finish, view logic to data layer and persistence. You will learn how Angular makes developers lives easier by taking care of rendering and event handling, giving you more time to focus on what you love: the actual logic of the app. With Yeoman, you will also guarantee the quick creation of new views, routes, and controllers, without ever having to create a file manually.

Style and Approach

The course uses a full fledged application, a movie library app as the leading example throughout the sections, starting from the creation of the code structure and continuously enhancing it while you learn about the various moving parts of an Angular application. This guarantees a step-by-step approach while keeping a good continuity through the course.

Authors

Mathieu Chauvinc

Mathieu Chauvinc is a Managing Director at Red Ape Solutions and has made Angular the company's weapon of choice in building complex single-page applications and neat hybrid mobile apps. He has been involved in web technologies for over a decade, from Django to Node, SQL to NoSQL, Mootools to Angular, continuously trying to keep the right balance between the excitement of new frameworks and the stability of proven ones. He always has a special place in his heart for Python and Django.

He holds a Master's degree in Engineering from the German University Karlsruhe and a Master's degree in Engineering from the French ENSAM (Paris). Despite an engineering background, he has always had a passion for knowledge sharing, which has followed him to this day. He regularly conducts corporate or free training on various I.T. topics in his adoptive country of Malaysia.