diff options
| author | Renat Yakubov | 2014-03-24 22:44:08 +0300 |
|---|---|---|
| committer | Tobias Bosch | 2014-03-24 15:13:36 -0700 |
| commit | 4a6d4de53ed1472c0cb2323292127495619d7ed9 (patch) | |
| tree | 89b445b97bec7e9507b223ccfb31fa7b2f5c2b7b /CONTRIBUTING.md | |
| parent | b472d0275f2900beba3b1f2fcee821369f8c15c1 (diff) | |
| download | angular.js-4a6d4de53ed1472c0cb2323292127495619d7ed9.tar.bz2 | |
fix(filter.ngdoc): Check if "input" variable is defined
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 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions
