Skip to content

Commit ebd99d2

Browse files
committed
Remove ngOnDestroy() event-handler - I think its counter to the approach in this demo.
1 parent bc7061f commit ebd99d2

4 files changed

Lines changed: 15 additions & 27 deletions

File tree

demos/form-data-session-storage-angular9/dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ <h1>
1818

1919
<app-root></app-root>
2020

21-
<script src="runtime-es2015.10ab11eeb5795700cac4.js" type="module"></script><script src="runtime-es5.10ab11eeb5795700cac4.js" nomodule defer></script><script src="polyfills-es5.3e21be3fb90e88929496.js" nomodule defer></script><script src="polyfills-es2015.34441c1a7666fa03b203.js" type="module"></script><script src="main-es2015.4199c965d28fb12cf32b.js" type="module"></script><script src="main-es5.4199c965d28fb12cf32b.js" nomodule defer></script></body>
21+
<script src="runtime-es2015.10ab11eeb5795700cac4.js" type="module"></script><script src="runtime-es5.10ab11eeb5795700cac4.js" nomodule defer></script><script src="polyfills-es5.3e21be3fb90e88929496.js" nomodule defer></script><script src="polyfills-es2015.34441c1a7666fa03b203.js" type="module"></script><script src="main-es2015.412b365226b4cac19078.js" type="module"></script><script src="main-es5.412b365226b4cac19078.js" nomodule defer></script></body>
2222
</html>

demos/form-data-session-storage-angular9/dist/main-es2015.4199c965d28fb12cf32b.js renamed to demos/form-data-session-storage-angular9/dist/main-es2015.412b365226b4cac19078.js

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/form-data-session-storage-angular9/dist/main-es5.4199c965d28fb12cf32b.js renamed to demos/form-data-session-storage-angular9/dist/main-es5.412b365226b4cac19078.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/form-data-session-storage-angular9/src/app/app.component.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,6 @@ export class AppComponent {
5959
// PUBLIC METHODS.
6060
// ---
6161

62-
// I get called when the component is being unmounted.
63-
// --
64-
// NOTE: This life-cycle method never actually gets called in this demo; I'm just
65-
// including it here to help paint the picture of how the temporary storage could be
66-
// populated and then cleared during the life-time of a Component.
67-
public ngOnDestroy() : void {
68-
69-
this.temporaryStorage.remove();
70-
71-
}
72-
73-
7462
// I get called once after the input bindings have been wired-up.
7563
public ngOnInit() : void {
7664

0 commit comments

Comments
 (0)