MCPcopy Index your code
hub / github.com/angular/angular / update

Method update

packages/core/test/render3/view_fixture.ts:193–203  ·  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

191 * @param updateFn An update block function to invoke.
192 */
193 update(updateFn?: () => void) {
194 updateFn ||= this.updateFn;
195 if (!updateFn) {
196 throw new Error(
197 'The `ViewFixture.update` was invoked, but there was no `update` function ' +
198 'provided during the `ViewFixture` instantiation or specified as an argument ' +
199 'in this call.',
200 );
201 }
202 refreshView(this.tView, this.lView, updateFn, this.context);
203 }
204
205 /**
206 * 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