From 63f9ec86aa73927c000001629325cc29bdd58175 Mon Sep 17 00:00:00 2001 From: Nicolas Brouet Date: Wed, 14 Feb 2018 14:21:18 +0100 Subject: [PATCH 1/2] In MaterializeAction replace [any] by any[] [any] only has 1 element in its array. any[] can has multiple elements. It allows things like this.tabsActions.emit({action: "tabs", params: ['select_tab', page]}); that several persons were looking for, and it's compatible with previous version. --- src/materialize-directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/materialize-directive.ts b/src/materialize-directive.ts index 68365e6..7374a26 100644 --- a/src/materialize-directive.ts +++ b/src/materialize-directive.ts @@ -29,7 +29,7 @@ declare var Materialize: any; export interface MaterializeAction { action: string; - params: [any]; + params: any[]; } @Directive({ From f0f645957c39fcca5415a39e83bf778806bf7793 Mon Sep 17 00:00:00 2001 From: Nicolas Brouet Date: Fri, 16 Feb 2018 11:13:38 +0100 Subject: [PATCH 2/2] Fix for coherency [any] to any[] --- src/materialize-directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/materialize-directive.ts b/src/materialize-directive.ts index 7374a26..80acfba 100644 --- a/src/materialize-directive.ts +++ b/src/materialize-directive.ts @@ -37,7 +37,7 @@ export interface MaterializeAction { }) export class MaterializeDirective implements AfterViewInit,DoCheck,OnChanges,OnDestroy { - private _params: [any] = null; + private _params: any[] = null; private _functionName: string = null; private previousValue = null; private previousDisabled = false;