UNPKG

@ng-doc/app

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

24 lines (20 loc) 711 B
import { NgDocSearchEngine } from '@ng-doc/app/classes/search-engine'; /** * Provides the `NgDocSearchEngine` to enable search in the documentation. * * You can create and provide your own `NgDocSearchEngine` if you want to handle the search yourself. * @param engine - The search engine class. * @param args - The arguments for the search engine class. * @returns The provider for the search engine. */ function provideSearchEngine(engine, ...args) { return { provide: NgDocSearchEngine, useFactory: () => new engine(...args), }; } /** * Generated bundle index. Do not edit. */ export { provideSearchEngine }; //# sourceMappingURL=ng-doc-app-providers-search-engine.mjs.map