
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
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 39 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
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.