Practical AngularJS (Free version)
With Membership
Suggested price

Practical AngularJS

Real-world examples of using AngularJS in multiple scenarios and platforms (KarmaJS, Firebase, Eclipse, WebStorm, O2 Platform)

About the Book

This book contains the AngularJS related blog posts posted on Dinis Cruz’ blog at

This is the fist draft release of this book, so please send your suggestions, criticisms, ideas or comments to

Notes about current structure: The chapter structure is still being defined and it in a state of flux. Feedback is highly appreciated 

You can also buy a printed copy of this book at lulu

About the Author

Dinis Cruz
Dinis Cruz

Dinis Cruz is a Developer and Application Security Engineer focused on how to develop secure applications. A key drive is on 'Automating Application Security Knowledge and Workflows' which is the main concept behind the OWASP O2 Platform and Security Innovation's TeamMentor (Dinis is the main developer and architect of both Applications). Current day job is with Security Innovation where Dinis tries to promote openness, quality and sharing as part a core tenet of TeamMentor's application development environment.

After many years (and multiple roles) Dinis is still very active at OWASP, currently leading the O2 Platform project and helping out other projects and initiatives.

After failing to scale his own security knowledge, learned Git, created security vulnerabilities in code published to production servers, delivered training to developers, and building multiple CI (Continuous Integration) environments; Dinis had the epiphany that the key to application security is "Secure Continuous Delivery: Developer’s Immediate Connection to What They’re Creating". This 'Immediate Connection/Feedback' concept is deep rooted in the development of the O2 Platform/TeamMentor, and is something that will keep Dinis busy for many years.


Free version

If you can't (or don't want to) pay for the book

  • PDF

  • EPUB

  • WEB

  • English

With Membership
Suggested price
The Book

Digital download only

  • PDF

  • EPUB

  • WEB

  • English

Minimum price
Suggested price
eBook + Printed Copy

If you buy this package I will send you a printed copy of the book. Good for the buyers who like to read on real books (like me)

  • PDF

  • EPUB

  • WEB

  • English

Minimum price
Suggested price

Bundles that include this book

4 Books
Bought separately
Bundle Price

Table of Contents

    • Leanpub book, originally based on Blog posts
    • Change log:
    • Post’s dates
  • 1. Using AngularJS
    • 1.1 Really SIMPLE and clean AngularJS + Firebase example
    • 1.2 Using AngularJS in Eclipse, Part 1) The Basics
    • 1.3 Using AngularJS in Eclipse, Part 2) Add Some Control
    • 1.4 Using AngularJS in Eclipse, Part 3) Wire up a Backend
    • 1.5 Using AngularJS in Eclipse, Part 4) Create Components
    • 1.6 AngularJS code editor using UI-Bootstrap and CodeMirror (done without using jQuery)
  • 2. KarmaJS
    • 2.1 A small AngularJS Jasmine test executed by KarmaJS
    • 2.2 Creating an Eclipse UI to run AngularJS e2e tests using Karma
    • 2.3 Running KarmaJS’s AngularJS example test/e2e/angular-scenario (on Chrome)
  • 3. Firebase
    • 3.1 First PoC of sending server-side request URLS to Firebase (and seeing it in realtime in an AngularJS page)
    • 3.2 Trying out Firebase (Beta) hosting solution and good example of Firebase Security rules
  • 4. Misc Tricks
    • 4.1 Programmatically changing an AngularJS scope variable and adding Firebug Lite to an AngularJs app
    • 4.2 Hubspot current.js code includes JQuery on it
    • 4.3 Submitting TM users to HubSpot via TBOT interface
  • 5. IDEs
    • 5.1 Eclipse Groovy REPL script to sync a Browser with file changes (with recursive folder search via Java’s WatchService)
    • 5.2 Eclipse Groovy script to remove the ‘busy’ image from the WebBrowser Editor
    • 5.3 Using Chrome inside a native VisualStudio pane (using Window Handle Hijacking)
    • 5.4 Using WebStorm with Chrome and ChromeDriver (to view KarmaJS execution results)
    • 5.5 When the best way to automate Chrome is to use … Chrome (with examples on Google search, direct AngularJS scope manipulation and ChromeDriver javascript access)
    • 5.6 Adding KarmaJS support to WebStorm to automagically run tests on file changes (and test UI with SublimeText, Chrome and Cmd.exe)
  • 6. Troubleshooting
    • 6.1 KarmaJS AngularJS Scenario Test Runner execution variations in IE 7,8,9 and 10 when using AngularJS
    • 6.2 If AngularJS doesn’t work on your O2 Platform IE scripts (the fix is to change browser compatibility mode)
    • 6.3 Debugging a weird case of missing module in AngularJS and KarmaJS

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.

See full terms

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $12 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

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub