(queryList: QueryList<any>)
| 70 | * @codeGenApi |
| 71 | */ |
| 72 | export function ɵɵqueryRefresh(queryList: QueryList<any>): boolean { |
| 73 | const lView = getLView(); |
| 74 | const tView = getTView(); |
| 75 | const queryIndex = getCurrentQueryIndex(); |
| 76 | |
| 77 | setCurrentQueryIndex(queryIndex + 1); |
| 78 | |
| 79 | const tQuery = getTQuery(tView, queryIndex); |
| 80 | if ( |
| 81 | queryList.dirty && |
| 82 | isCreationMode(lView) === |
| 83 | ((tQuery.metadata.flags & QueryFlags.isStatic) === QueryFlags.isStatic) |
| 84 | ) { |
| 85 | if (tQuery.matches === null) { |
| 86 | queryList.reset([]); |
| 87 | } else { |
| 88 | const result = getQueryResults(lView, queryIndex); |
| 89 | queryList.reset(result, unwrapElementRef); |
| 90 | queryList.notifyOnChanges(); |
| 91 | } |
| 92 | return true; |
| 93 | } |
| 94 | |
| 95 | return false; |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * Loads a QueryList corresponding to the current view or content query. |
nothing calls this directly
no test coverage detected
searching dependent graphs…