注重体验与质量的电子书资源下载网站
分类于: 其它 互联网
简介
AngularJS Directives 豆 0.0分
资源最后更新于 2020-11-17 04:26:51
作者:Alex Vantson
出版社:Packt Publishing
出版日期:2013-01
ISBN:9781783280339
文件格式: pdf
标签: JavaScript angular Programming AngularJS javascript front-end 编程 码农读物
简介· · · · · ·
Learn how to build an AngularJS directive
Create extendable modules for plug-and-play usability
Build apps that react in real-time to changes in your data model
目录
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
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
Summary
2. The Need for Directives
What makes a directive a directive
Summary
3. Deconstructing Directives
Getting started
Naming
Attachment styles
Configuration options
Summary
4. Compile versus Link
Peeking under the covers
ng-repeat
What about linking?
Summary
5. Keeping it Clean with Scope
Scope = false
Scope = true
Scope = {}
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
My first test
Mocking data
The test subject
E2E testing
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
Events
Timing
Further steps
Summary
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
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
Summary
2. The Need for Directives
What makes a directive a directive
Summary
3. Deconstructing Directives
Getting started
Naming
Attachment styles
Configuration options
Summary
4. Compile versus Link
Peeking under the covers
ng-repeat
What about linking?
Summary
5. Keeping it Clean with Scope
Scope = false
Scope = true
Scope = {}
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
My first test
Mocking data
The test subject
E2E testing
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
Events
Timing
Further steps
Summary