Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. import { Directive, ElementRef, Input } from '@angular/core';
  2. @Directive({ selector: '[myEdit]' })
  3. export class EditDirective {
  4. constructor(el: ElementRef) {
  5. el.nativeElement.contenteditable = "'true'";
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement