Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
angular2-resizable
Advanced tools
An angular2 directive that allows an element to be dragged and resized
https://mattlewis92.github.io/angular2-resizable/demo/
An angular2 directive that allows an element to be dragged and resized
Install through npm:
npm install --save angular2-resizable
Then use it in your app like so:
import {Component} from '@angular/core';
import {ResizeEvent} from 'angular2-resizable';
@Component({
selector: 'demo-app',
// you should add some styles to the element. See the demo folder for a more fleshed out example
template: '<div mwlResizable (resizeEnd)="onResizeEnd($event)"></div>'
})
export class MyComponent {
onResizeEnd(event: ResizeEvent): void {
console.log('Element was resized', event);
}
}
// now use within your apps module
import {NgModule} from '@angular/core';
import {ResizableModule} from 'angular2-resizable';
@NgModule({
declarations: [MyComponent],
imports: [ResizableModule],
bootstrap: [MyComponent]
})
class MyModule {}
You may also find it useful to view the demo source.
<script src="node_modules/angular2-resizable/angular2-resizable.js"></script>
<script>
// everything is exported on the angular2Resizable namespace
</script>
All documentation is auto-generated from the source via typedoc and can be viewed here: https://mattlewis92.github.io/angular2-resizable/docs/
npm install
while current directory is this repoRun npm start
to start a development server on port 8000 with auto reload + tests.
Run npm test
to run tests once or npm run test:watch
to continually run tests.
npm run release
MIT
FAQs
An angular2 directive that allows an element to be dragged and resized
The npm package angular2-resizable receives a total of 14 weekly downloads. As such, angular2-resizable popularity was classified as not popular.
We found that angular2-resizable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.