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

Consider allowing bindingContext to be a function that gets called after aurelia.start() #8

Open
silbinarywolf opened this issue Jan 30, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@silbinarywolf
Copy link
Owner

silbinarywolf commented Jan 30, 2019

Why
Consider allowing bindingContext to be a function as well.
A potential benefit is that you can use "Container.instance.get" after aurelia has called start.

const bindingContext = this.bindingContext;
//const bindingContext = typeof(this.bindingContext) === 'function' ? this.bindingContext() : this.bindingContext;
@silbinarywolf silbinarywolf added the enhancement New feature or request label Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant