Skip to main content
Version: 2.x

ignore() function

@microsoft/fast-element/di.js > ignore

ignore() function

A decorator that tells the container not to try to inject a dependency.

Signature:

export declare function ignore(target: Injectable, property?: string | number, descriptor?: PropertyDescriptor | number): void;

Parameters

Parameter

Type

Description

target

Injectable

property

string | number

(Optional)

descriptor

PropertyDescriptor | number

(Optional)

Returns:

void