QueryList
An unmodifiable list of items that Angular keeps up to date when the state of the application changes.
class QueryList<T> implements Iterable<T> {}
dirty
true
length
number
first
T
last
T
changes
Observable<any>
Returns Observable
of QueryList
notifying the subscriber of changes.
get
T | undefined
Returns the QueryList entry at index
.
number
T | undefined
map
U[]
filter
See Array.filter
(value: T, index: number, array: readonly T[]) => value is S
S[]
(value: T, index: number, array: readonly T[]) => unknown
T[]
find
T | undefined
reduce
U
See Array.reduce
(prevValue: U, curValue: T, curIndex: number, array: T[]) => U
U
U
forEach
void
some
boolean
toArray
T[]
Returns a copy of the internal results list as an Array.
T[]
toString
string
string
reset
void
Updates the stored data of the query list, and resets the dirty
flag to false
, so that
on change detection, it will not notify of changes to the queries, unless a new change
occurs.
(any[] | T)[]
The query results to store
((value: T) => unknown) | undefined
Optional function for extracting stable object identity from a value
in the array. This function is executed for each element of the query result list while
comparing current query list with the new one (provided as a first argument of the reset
function) to detect if the lists are different. If the function is not provided, elements
are compared as is (without any pre-processing).
void
notifyOnChanges
void
Triggers a change event by emitting on the changes
EventEmitter
.
void
setDirty
void
internal
void
destroy
void
internal
void
[Symbol.iterator]
() => Iterator<T, any, any>