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

Method back

packages/common/testing/src/location_mock.ts:138–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 }
137
138 back() {
139 if (this._historyIndex > 0) {
140 this._historyIndex--;
141 this._subject.next({
142 'url': this.path(),
143 'state': this.getState(),
144 'pop': true,
145 'type': 'popstate',
146 });
147 }
148 }
149
150 historyGo(relativePosition: number = 0): void {
151 const nextPageIndex = this._historyIndex + relativePosition;

Callers 1

location_spec.tsFile · 0.45

Calls 3

pathMethod · 0.95
getStateMethod · 0.95
nextMethod · 0.45

Tested by

no test coverage detected