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
| Method | Description |
|---|---|
| load(elem, scopeProps, template) |
load method
Signature
typescript
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
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Scroll for more