UNPKG

apim-developer-portal1

Version:

API management developer portal

16 lines (14 loc) 728 B
import { IInjectorModule, IInjector } from "@paperbits/common/injection"; import { ReportsByApiViewModel } from "./ko/reportsByApiViewModel"; import { ReportsByApiModelBinder } from "./reportsByApiModelBinder"; import { ReportsByApiViewModelBinder } from "./ko/reportsByApiViewModelBinder"; /** * Inversion of control module that registers publish-time dependencies. */ export class ReportsByApiPublishModule implements IInjectorModule { public register(injector: IInjector): void { injector.bind("reportsByApi", ReportsByApiViewModel); injector.bindToCollection("modelBinders", ReportsByApiModelBinder); injector.bindToCollection("viewModelBinders", ReportsByApiViewModelBinder); } }