aboutsummaryrefslogtreecommitdiffstats
path: root/test/ngCookies
diff options
context:
space:
mode:
authorRenat Yakubov2014-03-24 22:44:08 +0300
committerTobias Bosch2014-03-24 16:11:28 -0700
commita275d539f9631d6ec64d03814b3b09420e6cf1ee (patch)
tree27807e2473525fe238d1fe5103b5f067794fce6e /test/ngCookies
parent17fa2468bc5223edcd7294ddfd9fc02003a80e94 (diff)
downloadangular.js-v1.2.x.tar.bz2
fix(filter.ngdoc): Check if "input" variable is definedv1.2.x
By default, "greeting" textfield in this example is prepopulated with "hello" text, but it's pretty easy to copy just filter code to use it in your app. If your textfield is empty while app loads, you'll get an error: "Error: [$interpolate:interr] Can't interpolate: Reverse: {{greeting|reverse}} TypeError: Cannot read property 'length' of undefined". To prevent this, we should check "input" variable, and proceed only in case it is defined. Closes #6819.
Diffstat (limited to 'test/ngCookies')
0 files changed, 0 insertions, 0 deletions