A step-by-step guide to building a well-structured single-page Angular application.
This is Volume 3 of a 3 part series, Introducing AngularJS. We recommend that you view these volumes in sequential order so that you can follow along with our author Mathieu Chauvinc from start to finish. You can find other volumes in this series on Udemy by following the links below:
Volume 1: Introducing AngularJS-Volume 1
Volume 2: Introducing AngularJS-Volume 2
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 the 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.
Kick-start your application in minutes by scaffolding it entirely with Yeoman
Build a dynamic page and render lists of items in one line of code
Program Reactions on user-interactions such as clicks, selection change, blur, and more
Easily validate data present in forms, from simple required fields to complex custom form validation
Efficiently handle routing between different pages of an application
Load data from external sources in the background by using AJAX calls with Angular
Master the use of performing actions asynchronously by creating worker threads
Who is this course intended for?
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.
Packt has been committed to developer learning since 2004. A lot has changed in software since then – but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.
With an extensive library of content – more than 4000 books and video courses -Packt’s mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages to cutting-edge data analytics, and DevOps, Packt takes software professionals in every field to what’s important to them now.
From skills that will help you to develop and future-proof your career to immediate solutions to everyday tech challenges, Packt is a go-to resource to make you a better, smarter developer.
Loading External Data
Making AJAX Calls via $http
Handling Responses via Success and Error Callbacks
Building GET and POST Requests
Making Cross-domain Requests Using JSONP
Separating the Loading of Data from the Controller