Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat($IncludedByStateFilter): add parameters to $IncludedByStateFilter #2193

Merged
merged 1 commit into from
Dec 8, 2015
Merged

feat($IncludedByStateFilter): add parameters to $IncludedByStateFilter #2193

merged 1 commit into from
Dec 8, 2015

Conversation

cyrilf
Copy link
Contributor

@cyrilf cyrilf commented Aug 20, 2015

PR linked to #1736 but for version feature-1.0

Add parameters to the $IncludedByStateFilter:

  • params
  • options

This allows to use more parameters on this filter and not only the fullOrPartialStatename parameter.
Thanks to this improvement, the following now works (takes in account the id param):

<div ng-show="'**.foo.**' | includedByState:{id: 'new'}">It works</div>

Related doc: http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state#methods_includes

PR linked to #1736 but for version feature-1.0
Add parameters to the $IncludedByStateFilter:
- params
- options

This allows to use more parameters on this filter and not only the fullOrPartialStatename parameter.
Thanks to this improvement, the following now works (takes in account the id param):

<div ng-show="'**.foo.**' | includedByState:{id: 'new'}">It works</div>

Related doc: http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state#methods_includes
@cyrilf
Copy link
Contributor Author

cyrilf commented Aug 20, 2015

Travis failed. Don't have time to check why at the moment.
I didn't introduce any breaking changes.. so maybe it's due to the feature-1.0 branch?
Otherwise I'll check why later on.

@christopherthielen
Copy link
Contributor

Yeah 1.0 tests are just failing currently

@cyrilf
Copy link
Contributor Author

cyrilf commented Dec 8, 2015

Any news about this PR? 👋

nateabele added a commit that referenced this pull request Dec 8, 2015
feat($IncludedByStateFilter): add parameters to $IncludedByStateFilter
@nateabele nateabele merged commit 44d3895 into angular-ui:feature-1.0 Dec 8, 2015
@cyrilf cyrilf deleted the includedByState-improvement-1.0 branch December 8, 2015 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants