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

Method next

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

Goes to the next set of items

()

Source from the content-addressed store, hash-verified

86
87 /** Goes to the next set of items */
88 next() {
89 for (let i = this.index; i < this.items().length; i++) {
90 if (this._isOutOfView(i)) {
91 this.index = i;
92 this._scrollToActiveItem();
93 break;
94 }
95 }
96 }
97
98 /** Goes to the previous set of items. */
99 previous() {

Callers 7

constructorMethod · 0.45
ngOnDestroyMethod · 0.45
ngOnDestroyMethod · 0.45
carousel.spec.tsFile · 0.45
documentMethod · 0.45
_updateDocumentMethod · 0.45

Calls 2

_isOutOfViewMethod · 0.95
_scrollToActiveItemMethod · 0.95

Tested by

no test coverage detected