PacktLib: AngularJS Directives

AngularJS Directives

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Designing Web Applications in 2013

An overview of good code

We're not just talking about a lot of APIs

Modularity

Data driven development

Summary

The Need for Directives

What makes a directive a directive

Summary

Deconstructing Directives

Getting started

Naming

Attachment styles

Configuration options

Summary

Compile versus Link

Peeking under the covers

ng-repeat

What about linking?

Summary

Keeping it Clean with Scope

Scope = false

Scope = true

Scope = {}

Summary

Controllers – Better with Sharing

Forms and inputs

Creating our own controller communication

Summary

Transclusion

That's not a word...

...it is a solution

Manipulating the transcluded content

Summary

Good Karma – Testing in AngularJS

Getting Started

My first test

Mocking data

The test subject

E2E testing

Summary

A Deeper Dive into Unit Testing

Highlighted, again

Negative testing

Summary

Bringing it All Together

Angular content grid

Diving in

The initial directive

Connecting Masonry

Events

Timing

Further steps

Summary

Index