Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Enterprise Open source

AngularLoader interface

Used to load an Angular component from the context of a React component. Please see the AngularComponent for a proper example.

Signature

typescript
export interface AngularLoader 

Import

typescript
import { AngularLoader } from '@grafana/runtime';

Methods

MethodDescription
load(elem, scopeProps, template)

load method

Signature

typescript
load(elem: any, scopeProps: any, template: string): AngularComponent;

Parameters

ParameterTypeDescription
elemanythe element that the Angular component will be loaded into.
scopePropsanyvalues that will be accessed via the Angular scope.
templatestringtemplate used by the Angular component.

Returns:

AngularComponent