2.0.1 • Published 5 years ago

ng-cemodel v2.0.1

Weekly downloads
68
License
MIT
Repository
github
Last release
5 years ago

ng-cemodel

Angular directive allowing you to bind ngmodel to contenteditable, complete with placeholder support

Installation

  • install the directive
  npm install --save ng-cemodel

or if you're using yarn:

  yarn add ng-cemodel
  • import it in your module file along with @angular/forms' FormModule
import { NgCemodelModule } from 'ng-cemodel';
import { FormsModule } from '@angular/forms';

@NgModule({
  ...
  imports: [
    ...
    FormsModule,
    NgCemodelModule,
    ...
  ],
  ...
})
  • you can now use this directive wherever you want!
<h1 name="title"
    contenteditable
    [(ngModel)]="title"
    placeholder="it has a placeholder too!">
</h1>

features

This directive allows for both ngModel as well as formcontrol, on top of that it supports placeholder and has custom stylings when a contenteditable element with this directive is hovered

2.0.1

5 years ago

2.0.0

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago