@paperbits/forms
Version:
Paperbits components for form builder.
13 lines (11 loc) • 587 B
text/typescript
import { IInjectorModule, IInjector } from "@paperbits/common/injection";
import { TextInput } from "./textInput";
import { TextInputModelBinder } from "../textInputModelBinder";
import { TextInputViewModelBinder } from "./textInputViewModelBinder";
export class TextInputModule implements IInjectorModule {
public register(injector: IInjector): void {
injector.bind("textInput", TextInput);
injector.bindToCollection("modelBinders", TextInputModelBinder);
injector.bindToCollection("viewModelBinders", TextInputViewModelBinder);
}
}