Primitives

Resize

Perform actions on element resize.

Import

Import the Resize primitive from ng-primitives/resize.

import { NgpResize } from 'ng-primitives/resize';

Usage

Assemble the resize directives in your template.

<div (ngpResize)="onResize($event)"></div>

API Reference

The following directives are available to import from the ng-primitives/resize package:

NgpResize

Apply the ngpResize directive to an element to listen for resize events.

  • Selector: [ngpResize]
  • Exported As: ngpResize
Event emitted when the element is resize.

Copyright © 2024 Angular Primitives