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: add NGRX_UPDATE_ON_TYPE type to library exports #184

Merged
merged 1 commit into from
Apr 4, 2020

Conversation

dzonatan
Copy link
Contributor

I faced with a case where I need to programmatically set the ngrxUpdateOn value from a directive. Therefore It would be great to have an access to NGRX_UPDATE_ON_TYPE so I wouldn't need to have a crappy code like .ngrxUpdateOn = 'blur' as any.
I hope this might be relevant for others too.

@MrWolfZ MrWolfZ changed the base branch from master to develop April 4, 2020 09:22
@MrWolfZ MrWolfZ merged commit ce91c8e into MrWolfZ:develop Apr 4, 2020
@umeshv
Copy link

umeshv commented Jul 13, 2020

Hi @MrWolfZ, thanks for the beautiful library.

Just a suggestion on the above type is it possible to export the NGRX_UPDATE_ON_TYPE as type instead of enum this will help the template to recognize the type while setting the value like ngrxUpdateOn="blur", currently the IDE sees this as unrecognized type. By converting this from enum to type user will be able to correctly set the values during development as well.

I will be ready to create a PR for this changes, let me know your thoughts on the same?

Thanks.

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