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

Add possibility to access component scope inside of 'transformer' function #500

Merged
merged 3 commits into from
Jan 20, 2018

Conversation

MaKCbIMKo
Copy link
Contributor

This will allow to access any other property of component inside of transformation function, e.g:

@Input() public anotherInput: string;

@select$(['selector'], (obs$, inst) => obs$.filter(x => x.name === inst.anotherInput))
public selectedObs: Observable<any>;

Such changes, IMHO, is pretty easy and it has backward compatibility.

@e-schultz e-schultz self-assigned this Jan 16, 2018
@e-schultz e-schultz merged commit ae9a658 into angular-redux:master Jan 20, 2018
@e-schultz
Copy link
Member

This is in v7.1.0 now which just got released, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants