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.
AngularLoader interface
Used to load an Angular component from the context of a React component. Please see the AngularComponent for a proper example.
Signature
export interface AngularLoader
Import
import { AngularLoader } from '@grafana/runtime';
Methods
Method | Description |
---|---|
load(elem, scopeProps, template) |
load method
Signature
load(elem: any, scopeProps: any, template: string): AngularComponent;
Parameters
Parameter | Type | Description |
---|---|---|
elem | any | the element that the Angular component will be loaded into. |
scopeProps | any | values that will be accessed via the Angular scope. |
template | string | template used by the Angular component. |
Returns:
AngularComponent