Lazy Programmer's Guide to Angular 1.x
Lazy Programmer's Guide to Angular 1.x
An efficient, yet comprehensive tutorial
About the Book
What this book is, a comprehensive, yet minimal and brief training on AngularJS framework. it aim to be fluid and fun as possible meanwhile bring to most important concepts and technical details of Angular to the reader.
What Angular is, one of the best frameworks around for building sophisticated and comprehensive web applications. It offers great modularity, MVVM architecture and testability among many other features to ensure the success of your large scale web project.
What you will learn by the end of this book, knowledge to be confident enough to start tackling any web project without the fear of scalability or technical problems. Of course, you will not learn every small tiny detail of many hundred pages of Angular's documentation, but you will learn enough to be able to extend your knowledge easily to any new detail.
What you should learn after finishing this book, Angular 1.x is not the end of the story. Aside from learning Angular2 (which is a platform, not a framework and offers different capabilities) you can learn the following frameworks that use Angular internally, to make the best profit out of your knowledge: Hybrid mobile application frameworks (such as Ionic), Desktop application frameworks (such as Electron), Native mobile application frameworks (such as Nativescript).
Why i wrote this book, I was somehow forced into building a very large web application with angular a few years ago, and it frightened me a lot at first, but as time went by and I got to know the beauty of Angular, everything changed. I even built many desktop and mobile apps using Angular. In this book I tried to bring all of details and experienced that helped me turn from an Angular hater person into a Builds everything using Angular person.
Table of Contents
-
Lazy Programmer’s Guide to Angular 1.x
- Preface
- Seriously? Angular 1?
- Who is this book for?
- Notes on Codes, The Text and this book
- Chapters overview
-
Getting you up and running
- What you’ll need for learning
- Inspection and dev tools inside browser
-
Angular, Reader, Reader, Angular!
- Building blocks of an Angular app
- Module
-
Controllers, Scopes and Data binding
- Data Binding
- Using functions
- The holy ng-model
-
Directives, adding supernatural power to HTML
- Iterating over objects
- Creating custom directives
-
Services, handling the data logic properly
- Why we might need a Service?
- Different types
- Into the next chapters
-
Further reading and challenges
- More ideas to hack around with
- Referencing a module
-
Controllers, templates and more!
-
More advance iteration with ng-repeat and pipe filters
- ng-repeat with objects
- Filters
- Further reading, challenges and the code
-
Style manipulation with Angular
- Using ng-show, ng-hide and ng-if
- Using ng-class
- Further reading and challenges and the code:
-
Ups and downs of < form > management with Angular
- Further reading and challenges and the code:
-
Using $http and $watch
- Using $http
- Using $watch
- Further reading and challenges and the code
-
Controller events and communication
- Unsubscribing
- Further reading and challenges and the code:
-
The great $rootScope
- Using $rootScope for $broadcasting events
- Further reading and challenges and the code:
-
More advance iteration with ng-repeat and pipe filters
-
Module lifecycle and configuration
- Module Configuration and Run block
-
Modifying HTTP Provider
- HTTP Interceptors
- Interceptors for authentication
- Interceptors for error handling
- Perform Async operations using $q
- Further reading, challenges and the code
-
Routing Config
- Crash course on Single page applications
- Client side routing with ngRoute
- Controlling the route using $location
- Passing route parameters with $route
- Further reading, challenges and the code
-
Refactoring to a large scale application
- Controllers are meant to control the UI, no more
-
Separating data logic and helper functions into Services
- Data Services
- Helper functions
- Using Directives for reusable components
- Using constants for cleaner code
-
Module level scaling and File structure
- 1- Grouping similar objects
- 2- Grouping similar features
-
Appendix and further reading
- A better way for injecting dependencies
- Providers
- Two types of people: this vs $scope
- Note on $scope.$apply
- Controller before destroy
- Style guide and best practices
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them