Type

From Get docs
< @angular/coreAngular/docs/9/api/core/type


Type

interface

Represents a type that a Component or other object is instances of.

See more...

interface Type<T> extends Function {
  new (...args: any[]): T
}

Child interfaces

  • InjectableType
  • InjectorType
  • TypeProvider


Description

An example of a Type is MyCustomComponent class, which in JavaScript is be represented by the MyCustomComponent constructor function.

Methods

new (...args: any[]): T

Parameters
args any[]
Returns

T



© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v9.angular.io/api/core/Type