Home Manual Reference Source Repository
import {ForwardRef} from 'ug-layout/di/Injector'
public class | source

ForwardRef

An instance of a forward ref function.

Example:

const test = new ForwardRef(() => 'test');

test.ref; // => 'test'

Static Method Summary

Static Public Methods
public static

resolve(val: *): *

Resolves a potential forward reference.

Constructor Summary

Public Constructor
public

constructor(fn: *)

Member Summary

Public Members
public

fn: *

public get

ref: *

The reference invoked reference function result.

Static Public Methods

public static resolve(val: *): * source

Resolves a potential forward reference.

Params:

NameTypeAttributeDescription
val *

Return:

*

Public Constructors

public constructor(fn: *) source

Params:

NameTypeAttributeDescription
fn *

Public Members

public fn: * source

public get ref: * source

The reference invoked reference function result.