pdf-preview-controller.js 587 B

12345678910111213141516171819
  1. import App from '../../../base'
  2. import { react2angular } from 'react2angular'
  3. import PdfPreview from '../components/pdf-preview'
  4. import { rootContext } from '../../../shared/context/root-context'
  5. import {
  6. DefaultSynctexControl,
  7. DetacherSynctexControl,
  8. } from '../components/detach-synctex-control'
  9. App.component('pdfPreview', react2angular(rootContext.use(PdfPreview), []))
  10. App.component(
  11. 'pdfSynctexControls',
  12. react2angular(rootContext.use(DefaultSynctexControl), [])
  13. )
  14. App.component(
  15. 'detacherSynctexControl',
  16. react2angular(rootContext.use(DetacherSynctexControl), [])
  17. )