aurelia / aurelia/framework

Provide a method to dispose an Aurelia instance

Open
#396 0 comments 6 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
11.7k
Forks
608
PR merge metrics
No merged PRs in 30d

Description

The framework should provide a method to shut down / dispose an Aurelia application instance.

Calling `aurelia.dispose()` would dispose all objects / event listeners created by Aurelia including:
- unbind/detach views
- release instances held by containers
- dispose all EventAggregators and bindings to release subscribers
- dispose / deactivate the router(s)
- null out the aurelia.container property and the aurelia.loader properties (as recommended by @EisenbergEffect in a private Gitter chat about this)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.