Angular Modernizer
    Preparing search index...

    Transforms async @Component methods that use await or .toPromise():

    1. Removes async, await and .toPromise() from the method.
    2. In ngOnInit, adds an Observable<unknown> property <name>$ for each this.<name> = ... assignment, with a TODO comment to switch the template to the async pipe. Template files are not changed.
    3. Removes detectChanges() calls.
    4. Adds the Observable import from rxjs when missing.

    Restores the original source text when a step throws.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    ruleId: "angular:promise-component-to-reactive" = 'angular:promise-component-to-reactive'

    Rule ID reported in every TransformResult.

    Methods