售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
AngularJS Directives Cookbook
Table of Contents
AngularJS Directives Cookbook
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
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Dealing with Modal and Tabs Directives
Introduction
Using inline HTML templates
Getting ready
How to do it…
How it works…
See also
Creating a simple modal directive
Getting ready
How to do it…
How it works…
There's more…
See also
Loading external templates for best practices
Getting ready
How to do it…
How it works…
There's more…
See also
Using the link function
Getting ready
How to do it…
How it works…
There's more…
See also
Dealing with tabs without Bootstrap UI directives
Getting ready
How to do it…
How it works…
There's more…
See also
2. Building a Navbar Custom Directive
Introduction
Building a navbar directive
Getting ready
How to do it…
How it works…
There's more…
See also
Directory structure for common components
Getting ready
How to do it…
How it works…
There's more…
See also
Directive's controller function
Getting ready
How to do it…
How it works…
There's more…
See also
Using the data attribute to HTML5 compile
Getting ready
How to do it…
How it works…
There's more…
See also
3. Customizing and Using Bootstrap UI Directives
Introduction
Dealing with modal directives
Getting ready
How to do it…
How it works…
There's more…
Creating tab directives
Getting ready
How to do it…
How it works…
There's more…
See also
The isolate $scope
Getting ready
How to do it…
How it works…
Attribute
Bindings
Expressions
There's more…
See also
Building accordion tab directives
Getting ready
How to do it…
How it works…
There's more…
Loading dynamic content
Getting ready
How to do it…
How it works…
There's more…
4. Creating Interactive jQuery UI Directives
Introduction
A simple directive example
Getting ready
How to do it…
How it works…
There's more…
See also
Manipulating the DOM with jQuery
Getting ready
How to do it…
How it works…
There's more…
The compile and link functions
Getting ready
How to do it…
How it works...
There's more…
See also
Creating the jQuery UI draggable directive
Getting ready
How to do it…
How it works…
There's more…
See also
Creating the jQuery UI droppable directive
Getting ready
How to do it…
How it works…
There's more…
See also
5. Implementing Custom Directives with Yeoman Generators
Introduction
Creating the baseline app with generator-angm
Getting ready
How to do it…
How it works…
There's more…
See also
Generator best practices
Getting ready
How to do it…
How it works…
There's more…
How to implement the ngMap directive
Getting ready
How to do it…
How it works…
There's more…
See also
Using the Angular-Loading-Bar directive
Getting ready
How to do it…
How it works…
There's more…
Implementing the ng-grid directive
Getting ready
How to do it…
How it works…
There's more…
See also
6. Using Directives to Develop Interface Components
Introduction
Creating an Off Canvas menu
Getting ready
How to do it…
How it works…
See also
Applying custom CSS
Getting ready
How to do it…
How it works…
There's more…
See also
Building a shopping cart
Getting ready
How to do it…
How it works…
There's more…
7. Building Directives with Dynamic Templates
Introduction
Using dynamic templates on directives
Getting ready
How to do it…
How it works…
There's more…
The compile function
Getting ready
How to do it…
How it works…
See also
Organizing dynamic directives on shared folders
Getting ready
How to do it…
How it works…
Mixing different content on templates
Getting ready
How to do it…
How it works…
There's more…
8. Creating Reusable Directives
Introduction
How to scale an AngularJS project to use reusable directives
Getting ready
How to do it…
How it works…
Building a directive as an interface component
Getting ready
How to do it…
How it works…
There's more…
See also
Creating a form directive with custom validation
Getting ready
How to do it...
How it works…
See also
9. Directive Unit Testing with Karma and Jasmine
Introduction
How to test AngularJS apps using Karma and Karma Runner
Getting ready
How to do it…
How it works…
There's more…
See also
Writing tests for directives with Jasmine
Getting ready
How to do it…
How it works…
There's more…
Testing elements when the scope changes
Getting ready
How to do it…
How it works…
There's more…
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜