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

Method forward

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

Source from the content-addressed store, hash-verified

124 }
125
126 forward() {
127 if (this._historyIndex < this._history.length - 1) {
128 this._historyIndex++;
129 this._subject.next({
130 'url': this.path(),
131 'state': this.getState(),
132 'pop': true,
133 'type': 'popstate',
134 });
135 }
136 }
137
138 back() {
139 if (this._historyIndex > 0) {

Callers 1

location_spec.tsFile · 0.45

Calls 3

pathMethod · 0.95
getStateMethod · 0.95
nextMethod · 0.45

Tested by

no test coverage detected