7 changed files with 22 additions and 22 deletions
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
import { Directive, Input } from "@angular/core"; |
||||
|
||||
import { AsyncContextProvider } from "./async-context-provider.abstraction"; |
||||
|
||||
@Directive({ |
||||
selector: "[bitAction][context]", |
||||
providers: [{ provide: AsyncContextProvider, useExisting: BitAsyncContextDirective }], |
||||
}) |
||||
export class BitAsyncContextDirective implements AsyncContextProvider { |
||||
@Input({ required: true }) |
||||
context: string; |
||||
} |
||||
@ -1,12 +0,0 @@
@@ -1,12 +0,0 @@
|
||||
import { Directive, Input } from "@angular/core"; |
||||
|
||||
import { ContextProvider } from "./context-provider.abstraction"; |
||||
|
||||
@Directive({ |
||||
selector: "[bitAction][context]", |
||||
providers: [{ provide: ContextProvider, useExisting: BitContextProviderDirective }], |
||||
}) |
||||
export class BitContextProviderDirective implements ContextProvider { |
||||
@Input({ required: true }) |
||||
context: string; |
||||
} |
||||
Loading…
Reference in new issue