MCPcopy Create free account
hub / github.com/angular/angular / update

Method update

packages/core/test/render3/view_fixture.ts:194–204  ·  view source on GitHub ↗

* Invokes an update block function, which can either be provided during * the `ViewFixture` initialization or as an argument. * * @param updateFn An update block function to invoke.

(updateFn?: () => void)

Source from the content-addressed store, hash-verified

192 * @param updateFn An update block function to invoke.
193 */
194 update(updateFn?: () => void) {
195 updateFn ||= this.updateFn;
196 if (!updateFn) {
197 throw new Error(
198 'The `ViewFixture.update` was invoked, but there was no `update` function ' +
199 'provided during the `ViewFixture` instantiation or specified as an argument ' +
200 'in this call.',
201 );
202 }
203 refreshView(this.tView, this.lView, updateFn, this.context);
204 }
205
206 /**
207 * If you use `ViewFixture` and `enter()`, please add `afterEach(ViewFixture.cleanup);` to ensure

Callers

nothing calls this directly

Calls 1

refreshViewFunction · 0.90

Tested by

no test coverage detected