
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
ngx-mat-menu-infinite-scroll
Advanced tools
Adds missing infinite scroll functionality for an [Angular Material Menu](https://material.angular.io/components/menu/overview).
Adds missing infinite scroll functionality for an Angular Material Menu.
npm install ngx-mat-menu-infinite-scroll@latest
Since the directive is marked as standalone you can directly import it into a module.
import { NgModule } from '@angular/core';
import { MatMenuInfiniteScrollDirective } from 'ngx-mat-menu-infinite-scroll';
@NgModule({
declarations: [...],
imports: [
MatMenuInfiniteScrollDirective
],
exports: [...]
})
export class AppModule { }
<button
mat-button
[matMenuTriggerFor]="menu"
matMenuInfiniteScroll
(scrolled)="loadMore()"
>Menu</button>
<mat-menu #menu="matMenu">
@for(item of items; track $index) {
<!-- Menu items to show... -->
}
</mat-menu>
Keyword | Function | Note |
---|---|---|
threshold | Threshold for triggering the 'scrolled' event | Default = 20, optional |
debounce | Debounce time to control the frequency of emitting 'scrolled' event (in milliseconds) | Default = 500, optional |
activeUntil | Input property that stops scrolling when a specified condition evaluates to false. | If the condition is false, scrolling stops., optional |
(scrolled) | Event emitted when the menu content is scrolled to the specified threshold |
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.