Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
AngularJS Directives
Table of Contents
AngularJS Directives
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Designing Web Applications in 2013
An overview of good code
We're not just talking about a lot of APIs
Modularity
Data driven development
Loading the data
Structuring our HTML
Adding JavaScript
Summary
2. The Need for Directives
What makes a directive a directive
Directives are declarative
Directives are data driven
Directives are conversational
Directives are everything you've dreamed about
Summary
3. Deconstructing Directives
Getting started
With Angular
With directives
Naming
Attachment styles
Configuration options
Priority
Terminal
Templating
Replace
Compiling and linking
Scope
Controllers
Transclusion
Summary
4. Compile versus Link
Peeking under the covers
ng-repeat
Compile
Link
ng-switch
What about linking?
Summary
5. Keeping it Clean with Scope
Scope = false
Scope = true
Scope = {}
@ – read-only Access
= – two-way binding
& – method binding
Summary
6. Controllers – Better with Sharing
Forms and inputs
Creating our own controller communication
Summary
7. Transclusion
That's not a word...
...it is a solution
Manipulating the transcluded content
Summary
8. Good Karma – Testing in AngularJS
Getting Started
Configuration
Angular and Karma
My first test
Mocking data
The test subject
E2E testing
Scenarios
Summary
9. A Deeper Dive into Unit Testing
Highlighted, again
Negative testing
Summary
10. Bringing it All Together
Angular content grid
Diving in
The initial directive
Connecting Masonry
Testing Masonry
Events
Timing
Further steps
Summary
Index
← Prev
Back
Next →
← Prev
Back
Next →