From a552708a836e093a163a73459ed216a58ceecc23 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 8 Nov 2019 18:41:21 -0500 Subject: [PATCH] add eg-file-reader to Angular sandbox Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html | 9 +++++++++ Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts | 3 +++ 2 files changed, 12 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html b/Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html index d456ae08a3..1de700e524 100644 --- a/Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html +++ b/Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html @@ -175,6 +175,15 @@
+

File reader component

+ +
Contents are:
+
    +
  1. {{val}}
  2. +
+
+ +

Cross-tab communications example

To test, open this sandbox in a second browser tab. Enter something in the input box below, then switch to the other tab and click anywhere on the page. You should see the message that you sent to the other browser tab.

diff --git a/Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts b/Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts index 13cd009d60..114d7453f3 100644 --- a/Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts @@ -102,6 +102,9 @@ export class SandboxComponent implements OnInit { // selector field value on metarecord object aMetarecord: string; + // file-reader example + fileContents: Array; + // cross-tab communications example private sbChannel: any; sbChannelText: string; -- 2.11.0