Angular Modernizer
    Preparing search index...

    Loads external Angular templates from templateUrl from disk. Resolves relative and absolute template paths against the component file and falls back to an empty template when the file cannot be read.

    Index

    Constructors

    Methods

    • Load external template file.

      Handles templateUrl: './user.component.html'

      Parameters

      • templateUrl: string

        Template URL from @Component metadata

      • componentPath: string

        Absolute path to the component file

      Returns Promise<string>

      Template content or empty string on error

    • Resolve template path from component path and templateUrl.

      Parameters

      • templateUrl: string

        Template URL from @Component metadata

      • componentPath: string

        Absolute path to the component file

      Returns string

      Absolute path to template file

    • Check if a template path exists.

      Parameters

      • templateUrl: string

        Template URL from @Component metadata

      • componentPath: string

        Absolute path to the component file

      Returns Promise<boolean>

      True if template file exists