MCPcopy Create free account
hub / github.com/angular/components / previous

Method previous

docs/src/app/shared/carousel/carousel.ts:99–107  ·  view source on GitHub ↗

Goes to the previous set of items.

()

Source from the content-addressed store, hash-verified

97
98 /** Goes to the previous set of items. */
99 previous() {
100 for (let i = this.index; i > -1; i--) {
101 if (this._isOutOfView(i)) {
102 this.index = i;
103 this._scrollToActiveItem();
104 break;
105 }
106 }
107 }
108
109 /** Updates the `tabindex` of each of the items based on their active state. */
110 private _updateItemTabIndices() {

Callers

nothing calls this directly

Calls 2

_isOutOfViewMethod · 0.95
_scrollToActiveItemMethod · 0.95

Tested by

no test coverage detected