trigger, 153–154
vs. transforms, 154–155
Application deployment
app.config.js file, 163
app.development.config, 164
app.production.config, 165
build tools, 171–173
bundling, 171
error handling, 167
minification, 170–171
testing
BDD, 165
black-box test, 165
expect() method, 166–167
it() methods, 166
Jasmine tests, 165
toBeTruthy() matcher method, 166–167
TDD, 165
WBD, 167
WBT, 165
unprocessed templates, 169
B
Basic title casing function, 72
Behavior-Driven Development (BDD), 165
Better title casing function, 73
C
charAt(), 73
config() method, 138–139
console.log() approach, 3, 28
Controller code
angularJS code, 106
check box, 104
form code, 105
select element, 103
submit Handler, 105
Custom filter
angular filter implementation, 72, 74
factory function, 71
factory pattern, 72
plan property, 71
Simple Replace Dashes function, 71
stripDashes filter, 72
stripDashes function, 71
title casing technique, 72–73
toTitleCase filter, 74
D, E
Date filter, 63–64
Dependency injection, 116
Directives
API documentation, 84–85
custom directive
colorList call, 85
configuration, 86
link option, 87–90
object definition, 86
restrict option, 86–87
template option, 87
event-handling, 84
include-me.html, 82
methods, 76
ngBind, 81
ngCloak, 81
ngController directive, 76
ngHide directive, 83
ngRepeat, 83–84
ngShow, 82
product-detail.html
default view, 78
myAppModule file, 79–80
product selection page, 77–78
Show Available Colors view, 79
showHideColors() function, 80
Document Object Model (DOM), 35, 55.
See also Directives
$document service, 118
doRegistration() method, 123
Double-curly-brace approach, 98
F, G
Filters
built-in filters
date filter, 63–64
limitTo, 65
number filter, 61–62
lowercase filter, 59
MyFilterDemoCtrl, 58
Raw Sample Data, 57
uppercase filter, 59
H, I
HTML forms
form element, 91
input element
button, 92
checkbox, 93
password, 93
radio button, 94
submit, 92
text, 93
label element, 96
model binding
■ index
Animation (cont.)