UpgradeComponent

UpgradeComponent

Experimental Class

What it does

Part of the upgrade/static library for hybrid upgrade apps that support AoT compilation

Allows an Angular 1 component to be used from Angular 2+.

How to use

Let's assume that you have an Angular 1 component called ng1Hero that needs to be made available in Angular 2+ templates.

// This Angular 1 component will be "upgraded" to be used in Angular 2+
ng1AppModule.component('ng1Hero', {
  bindings: {hero: '&