WrappedValue
Stable Class
Обзор класса
class WrappedValue {
static wrap(value: any) : WrappedValue
constructor(wrapped: any)
wrapped : any
}
Описание класса
Указывает, что результат преобразования Pipe изменился, даже если ссылка не изменилась.
Оборачиваемое значение будет распаковано механизмом обнаружения изменений, а распакованное значение будет сохранено.
Пример:
if (this._latestValue === this._latestReturnedValue) {
return this._latestReturnedValue;
} else {
this._latestReturnedValue = this._latestValue;
return WrappedValue.wrap(this._latestValue); // this will force update
}
Конструктор
constructor(wrapped: any)
Статические члены
wrap(value: any) : WrappedValue
Подробности класса
wrapped : any
экспортировано из @angular/core/index, определено в @angular/core/src/change_detection/change_detection_util.ts
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v2.angular.io/docs/ts/latest/api/core/index/WrappedValue-class.html