Skip to content

Commit

Permalink
fix: renamed directive selector from mwl-resizeable to mwl-resizable
Browse files Browse the repository at this point in the history
BREAKING CHANGE - rename the directive from mwl-resizeable to mwl-resizable
  • Loading branch information
Matt Lewis committed Jun 25, 2016
1 parent c75dac3 commit c60b3f5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {Resizable} from 'angular2-resizable';
selector: 'demo-app',
directives: [Resizable],
// you should add some styles to the element. See the demo folder for a more fleshed out example
template: '<div mwl-resizeable (onResizeEnd)="onResizeEnd($event)"></div>'
template: '<div mwl-resizable (onResizeEnd)="onResizeEnd($event)"></div>'
})
export class DemoApp {

Expand Down
2 changes: 1 addition & 1 deletion demo/demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {Resizable, ResizeEvent} from './../angular2-resizable';
<div
class="rectangle"
[ngStyle]="style"
mwl-resizeable
mwl-resizable
[resizeEdges]="{left: true, right: true, top: true, bottom: true}"
[validateResize]="validate"
(onResizeEnd)="onResizeEnd($event)">
Expand Down
2 changes: 1 addition & 1 deletion src/resizable.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const getResizeCursor: Function = (edges: Edges): string => {
};

@Directive({
selector: '[mwl-resizeable]'
selector: '[mwl-resizable]'
})
export class Resizable implements OnInit {

Expand Down
2 changes: 1 addition & 1 deletion test/resizable.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('resizable directive', () => {
<div
class="rectangle"
[ngStyle]="style"
mwl-resizeable
mwl-resizable
[validateResize]="validate"
[resizeEdges]="resizeEdges"
(onResizeStart)="onResizeStart($event)"
Expand Down

0 comments on commit c60b3f5

Please sign in to comment.