Socket
Socket
Sign inDemoInstall

angular2-resizable

Package Overview
Dependencies
4
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular2-resizable

An angular2 directive that allows an element to be dragged and resized


Version published
Weekly downloads
6
decreased by-75%
Maintainers
1
Install size
133 kB
Created
Weekly downloads
 

Changelog

Source

0.4.1 (2016-09-28)

Bug Fixes

  • typings: dont include reference to core-js (68dc84f)

<a name="0.4.0"></a>

Readme

Source

angular2 resizable

Build Status npm version devDependency Status GitHub issues GitHub stars GitHub license

Demo

https://mattlewis92.github.io/angular2-resizable/demo/

Table of contents

About

An angular2 directive that allows an element to be dragged and resized

Installation

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.

Usage without a module bundler

<script src="node_modules/angular2-resizable/angular2-resizable.js"></script>
<script>
    // everything is exported on the  angular2Resizable namespace
</script>

Documentation

All documentation is auto-generated from the source via typedoc and can be viewed here: https://mattlewis92.github.io/angular2-resizable/docs/

Development

Prepare your environment

  • Install Node.js and NPM (should come with)
  • Install local dev dependencies: npm install while current directory is this repo

Development server

Run npm start to start a development server on port 8000 with auto reload + tests.

Testing

Run npm test to run tests once or npm run test:watch to continually run tests.

Release

  • Bump the version in package.json (once the module hits 1.0 this will become automatic)
npm run release

License

MIT

Keywords

FAQs

Last updated on 28 Sep 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc