Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite: Convert directives to components #371

Open
8 of 28 tasks
Tracked by #374
arildm opened this issue Jun 17, 2024 · 0 comments
Open
8 of 28 tasks
Tracked by #374

Rewrite: Convert directives to components #371

arildm opened this issue Jun 17, 2024 · 0 comments
Labels
maintenance Oiling the gears, preventing future problems

Comments

@arildm
Copy link
Member

arildm commented Jun 17, 2024

In AngularJS, Components are more self-contained than Directives. They enforce vertical rather than horizontal dependency. Also, the same concept exists in Vue which makes migration easier.

Some cases are not well translated into components, and should be handled some other way.

  • kwicWord
  • tabHash
  • escaper
  • searchSubmit
  • meter
  • popper
  • tabSpinner
  • tabPreloader
  • clickCover
  • toBody
  • warning
  • typeaheadClickOpen
  • timeInterval
  • reduceSelect
  • globalFilters
  • globalFilter
  • mapCtrl
  • newsDesk
  • textReaderCtrl
  • textReader
  • compareCtrl
  • exampleCtrl
  • kwicCtrl
  • statsResultCtrl
  • graphCtrl
  • wordpicCtrl
  • scrollToStart

And

  • search history, which is not even consolidated into a directive, but spread across several files (history.js, services.js, main.ts, searchtabs.js)
@arildm arildm added the maintenance Oiling the gears, preventing future problems label Jun 17, 2024
@arildm arildm mentioned this issue Jun 17, 2024
5 tasks
@arildm arildm added this to the Rewrite to Vue milestone Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Oiling the gears, preventing future problems
Projects
None yet
Development

No branches or pull requests

1 participant