Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

optional comparator parameter in $filter('filter')(array, expression, comparator, anyPropertyKey) #15312

Closed
ranjan-2209 opened this issue Oct 25, 2016 · 5 comments

Comments

@ranjan-2209
Copy link

In this website: https://docs.angularjs.org/api/ng/filter/filter, comparator parameter is optional in $filter('filter')(array, expression, comparator, anyPropertyKey)
1

@gkalpak
Copy link
Member

gkalpak commented Oct 25, 2016

Listing undefined as one of the possible values is an unorthodox way of saying it is optional, I guess.
If someone wants to submit a PR to properly mark it as optional (and mention that it defaults to false), I would be happy to merge 😄

@ranjan-2209
Copy link
Author

Also, default value is false.

@gkalpak
Copy link
Member

gkalpak commented Oct 25, 2016

That's what I said 😃

kylewuolle added a commit to kylewuolle/angular.js that referenced this issue Nov 6, 2016
…parator parameter

change the documentation for $filter so that the comparator parameter is marked optional. Also specified that the default value is false.

Closes angular#15312
@kylewuolle
Copy link
Contributor

I submitted a PR 15371 for this!

@gkalpak gkalpak closed this as completed in b5a5623 Nov 7, 2016
gkalpak pushed a commit that referenced this issue Nov 7, 2016
Mark the `comparator` parameter as optional and mention that it defaults to `false`.

Fixes #15312

Closes #15371
@ranjan-2209
Copy link
Author

this isn't showing in docs?

petebacondarwin pushed a commit to petebacondarwin/angular.js that referenced this issue Nov 21, 2016
Mark the `comparator` parameter as optional and mention that it defaults to `false`.

Fixes angular#15312

Closes angular#15371
petebacondarwin pushed a commit to petebacondarwin/angular.js that referenced this issue Nov 21, 2016
Mark the `comparator` parameter as optional and mention that it defaults to `false`.

Fixes angular#15312

Closes angular#15371
petebacondarwin pushed a commit to petebacondarwin/angular.js that referenced this issue Nov 21, 2016
Mark the `comparator` parameter as optional and mention that it defaults to `false`.

Fixes angular#15312

Closes angular#15371
petebacondarwin pushed a commit to petebacondarwin/angular.js that referenced this issue Nov 21, 2016
Mark the `comparator` parameter as optional and mention that it defaults to `false`.

Fixes angular#15312

Closes angular#15371
petebacondarwin pushed a commit to petebacondarwin/angular.js that referenced this issue Nov 21, 2016
Mark the `comparator` parameter as optional and mention that it defaults to `false`.

Fixes angular#15312

Closes angular#15371
petebacondarwin pushed a commit that referenced this issue Nov 23, 2016
Mark the `comparator` parameter as optional and mention that it defaults to `false`.

Fixes #15312

Closes #15371
petebacondarwin pushed a commit that referenced this issue Nov 24, 2016
Mark the `comparator` parameter as optional and mention that it defaults to `false`.

Fixes #15312

Closes #15371
ellimist pushed a commit to ellimist/angular.js that referenced this issue Mar 15, 2017
Mark the `comparator` parameter as optional and mention that it defaults to `false`.

Fixes angular#15312

Closes angular#15371
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants