更新时间:2021-07-30 10:09:16
封面
版权页
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Conventions
Reader feedback
Customer support
Chapter 1. Dealing with Modal and Tabs Directives
Introduction
Using inline HTML templates
Creating a simple modal directive
Loading external templates for best practices
Using the link function
Dealing with tabs without Bootstrap UI directives
Chapter 2. Building a Navbar Custom Directive
Building a navbar directive
Directory structure for common components
Directive's controller function
Using the data attribute to HTML5 compile
Chapter 3. Customizing and Using Bootstrap UI Directives
Dealing with modal directives
Creating tab directives
The isolate $scope
Building accordion tab directives
Loading dynamic content
Chapter 4. Creating Interactive jQuery UI Directives
A simple directive example
Manipulating the DOM with jQuery
The compile and link functions
Creating the jQuery UI draggable directive
Creating the jQuery UI droppable directive
Chapter 5. Implementing Custom Directives with Yeoman Generators
Creating the baseline app with generator-angm
Generator best practices
How to implement the ngMap directive
Using the Angular-Loading-Bar directive
Implementing the ng-grid directive
Chapter 6. Using Directives to Develop Interface Components
Creating an Off Canvas menu
Applying custom CSS
Building a shopping cart
Chapter 7. Building Directives with Dynamic Templates
Using dynamic templates on directives
The compile function
Organizing dynamic directives on shared folders
Mixing different content on templates
Chapter 8. Creating Reusable Directives
How to scale an AngularJS project to use reusable directives
Building a directive as an interface component
Creating a form directive with custom validation
Chapter 9. Directive Unit Testing with Karma and Jasmine
How to test AngularJS apps using Karma and Karma Runner
Writing tests for directives with Jasmine
Testing elements when the scope changes
Index