downgradeComponent()

downgradeComponent

Experimental Function

What it does

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

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

How to use

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

// This Angular 2 component will be "downgraded" to be used in Angular 1
@Component({
  selector: 'ng2-heroes',
  // This