Skip to content

Instantly share code, notes, and snippets.

View ngehlert's full-sized avatar

Nicolas Gehlert ngehlert

  • Freiburg im Breisgau, Germany
View GitHub Profile
import { HybridHelper } from './hybrid-helper.v4';
import { DocumentsService, AnotherService } from './services';
import { DocumentComponent, AnotherComponent, AnotherComponent2, AnotherComponent3 } from './components';
const moduleName = 'document';
angular.module(moduleName, [...]);
HybridHelper
.downgradeComponent(moduleName, 'document', DocumentComponent, {
inputs: ['name', 'size', 'numOfPages', 'content'],
import { downgradeComponent, downgradeInjectable } from '@angular/upgrade/static';
import { FactoryProvider } from '@angular/core';
export interface IComponentUpgradeOptions {
  inputs?: string[],
  outputs?: string[]
}
export interface IHybridHelper {
downgradeComponent(moduleName: string, componentSelector: string, componentClass: any, options?: IComponentUpgradeOptions): IHybridHelper,