A step-by-step guide to build a well-structured single-page Angular application with a focus on a faster and more enjoyable development experience
About This Video
Build a full featured single-page web application with clean structure up to the standards of a real-life project
A faster, more pleasant coding experience for developers, focusing on actual logic and avoiding repetitive tasks such as code scaffolding
Ensure that the application will be easy to maintain, extend, modify, debug, and test using AngularJS
Learn about every aspect of Angular applications: views, logic, data layers, and configuration to build a dazzling app
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.
Table of contents
- Chapter 1 : Getting Started with an Angular Project
- Chapter 2 : Controllers and Templates
- Chapter 3 : User Interactions and Data Binding
- Chapter 4 : App Routing
Chapter 5 : Loading External Data
- Making AJAX Calls via $http 00:05:59
- Handling Responses via Success and Error Callbacks 00:04:52
- Building GET and POST Requests 00:07:51
- Making Cross-domain Requests Using JSONP 00:08:52
Chapter 6 : Introducing Services
- Separating the Loading of Data from the Controller 00:06:21
- Introducing the "factory" Type of Service 00:05:44
- Injecting Your Own Services 00:03:58
- Implementing Persistence 00:07:55
- Title: Introducing AngularJS
- Release date: June 2015
- Publisher(s): Packt Publishing
- ISBN: 9781783554218
You might also like
Creating a Simple Angular App (Angular for Java Developers - Part 1)
Fullstack developers often earn higher salaries and have more career opportunities than developers who only specialize …
Master Java Web Services and REST API with Spring Boot
Learn to develop RESTful and SOAP Java web services with Spring and Spring Boot in 90 …
51+ hours of video instruction. Overview The professional programmer’s Deitel® video guide to Python development with …
Building Microservices with Spring Boot, Second Edition
7+ Hours of Video Instruction The term “microservices” has gained significant traction over the last few …