Guest User

Untitled

a guest
May 24th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. import { CodemirrorModule } from 'ng2-codemirror';
  2. @NgModule({
  3. // ...
  4. imports: [
  5. CodemirrorModule
  6. ],
  7. // ...
  8. })
  9.  
  10. "styles": [
  11. "../node_modules/codemirror/lib/codemirror.css",
  12. "styles.scss"
  13. ],
  14. "scripts": [
  15. "../node_modules/codemirror/lib/codemirror.js"
  16. ],
  17.  
  18. <codemirror
  19. *ngIf="chaptersService.currentChapter"
  20. [(ngModel)]="chaptersService.currentChapter.novel"
  21. [config]="{lineNumbers: true}"
  22. autofocus
  23. (keyup)="markAsEdited()"
  24. #textareaNovel>
  25. </codemirror>
Add Comment
Please, Sign In to add comment