NgClassBase

From Get docs
< @angular/commonAngular/docs/8/api/common/ngclassbase


NgClassBase

class

Serves as the base non-VE container for NgClass.

See more...

class NgClassBase {
  constructor(_delegate: NgClassImpl)
  protected _delegate: NgClassImpl
  getValue()
}

Subclasses

  • NgClass


Description

While this is a base class that NgClass extends from, the class itself acts as a container for non-VE code to setup a link to the [class] host binding (via the static ngDirectiveDef property on the class).

Note that the ngDirectiveDef property's code is switched depending if VE is present or not (this allows for the binding code to be set only for newer versions of Angular).

Constructor

constructor(_delegate: NgClassImpl)

Parameters
_delegate NgClassImpl


Properties

Property Description
protected _delegate: NgClassImpl Declared in Constructor

Methods

getValue()

Parameters

There are no parameters.



© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v8.angular.io/api/common/NgClassBase