Enterprise Development with AngularJS

Retired

This book is no longer available for sale.

Enterprise Development with AngularJS

Lessons Learned, Tips and Tricks

About the Book

This book is a journal of the experience we, I and the team I am working with, gained while building a real enterprise scale business application using different frontend technologies but mainly AngularJS with backend in Java. Every tip you will find in this book is a result of hours and sometimes days of hard work and a lot of hair pulling! We have passed through the notorious Angular learning curve and we think it shouldn't be that rough and by sharing these how-to focused and practical advices we can make the journey easier for others.

  • Share this book

  • Categories

    • Software
    • JavaScript
    • Computers and Programming
    • AngularJS
  • Feedback

    Email the Author(s)

About the Author

Yaser Marey
Yaser Marey

My name is Yaser Marey, I am an Egyptian Software Engineer. I have been working as a system analyst, project manager, and development lead for the last 15 years building Enterprise Software Systems for national and regional customers. I am an enthusiast of Agile, Lean and Continuous Improvement and I sometimes write at http://yasseronline.wordpress.com

Table of Contents

  • Preface
    • Release Notes
    • Who This Book is For
    • Approach and Style
    • How This Book is Organized
    • Source on GitHub
  • About the Cover
  • Introduction
  • Part I: The Basics
  • Tip 1: Why Angular for Enterprise Applications ?
    • Enterprise Applications: The Definition
    • What Does Angular Provide?
    • What Doesn’t Angular Provide?
    • Summary
  • Tip x: Crash Course in AngularJS
  • Tip 2: A Taxonomy of Inter-directive Communication Methods - I
    • Method#1: Shared Object on Parent Scope
    • Method#2: Callback Function
    • Method#3: Requiring Controller of Another Directive
    • Summary
  • Tip 3: A Taxonomy of Inter-directive Communication Methods - II
    • Method#4: State Service
    • Method#5: Using Event Bus
    • Summary
  • Tip 4: Publish-Subscribe Pattern for Angular Directives
    • Pub-Sub to Decouple Directives
    • Summary
  • Tip 5: When and How to Use AngularJS Services: Factory and Service
    • factory Method
    • When to Use It
    • service Method
    • When to Use It
    • Summary
  • Tip 6: When and How to Use AngularJS Services: Constant and Value
    • value Method
    • Summary
  • Tip 7: When and How to Use AngularJS Services: Provider
    • provider Method
    • Configuring the Provider
    • Summary
  • Part II: The Baseline Architecture
  • Tip 8: Cancel in CRUD Forms using Browser’s Back Button
    • Undo UseCase
    • Anchor Interface Pattern
    • How Does It Look Like in Code
    • Summary
  • Tip 9: Form’s State Logic Encapsulation Using State Pattern
    • Refactoring Long If-Else
    • Creating the Service
    • Summary
  • Tip 10: The Indispensable CRUD Toolbar Directive
    • The Toolbar Directive
    • Setting up Icon Font Library
    • Summary
  • Tip 11: Non-singleton Angular Services
    • Angular Service that can be Instantiated
    • Code Sample
    • Summary
  • Tip 12: Designing RESTful Backend API’s
    • Our Design Rules
    • Structure of API’s URL
    • Summary
  • Tip 13: Using Template Method Design Pattern to Build Controllers.
    • Don’t Repeat Yourself
    • Template Method Design Pattern
    • How to implement this
    • Summary
  • Tip 14: JSON Driven Dynamic Forms
  • Tip 15: Business Aware UI Bootstrap Input Fields
  • Tip 16: Input Fields Factory
  • Tip 17: Building List Of Values Search Field
  • Tip 18: Modularization and Dependency Management for Really Big Application
  • Part III: Application Construction
  • Tip 19: Scaffolding for Your Business Applications
  • Part IV: Moving to Production
  • Tip 21: Lambda Expressions for JavaScript
    • Why We Use Arrow Functions
    • Two Basic Syntax
    • A Demonstration Using Array Functions
    • Summary

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...

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 $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

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