Skip to content

refactor: simplify viewer wrapper bindings#485

Open
Sujay-Deakin wants to merge 1 commit intothoth-tech:10.0.xfrom
Sujay-Deakin:migrate/viewer-wrapper-clean
Open

refactor: simplify viewer wrapper bindings#485
Sujay-Deakin wants to merge 1 commit intothoth-tech:10.0.xfrom
Sujay-Deakin:migrate/viewer-wrapper-clean

Conversation

@Sujay-Deakin
Copy link
Copy Markdown

Note: This is a cleaned-up version of PR #459, containing only the
relevant files (viewer.coffee and viewer.tpl.html).

Summary

This PR simplifies the AngularJS viewer wrapper by removing unnecessary $scope bindings and passing data directly to the Angular component.

Changes

  • Removed $scope.taskDefs assignment from viewer.coffee
  • Updated viewer.tpl.html to pass unit.taskDefinitions directly to <f-tasks-viewer>
  • No changes to routing or overall structure

Result

  • Reduces dependency on AngularJS controller logic
  • Moves data handling closer to the Angular component
  • Keeps existing functionality unchanged

Scope note

This PR is intentionally small and focuses only on simplifying the viewer wrapper. Further migration of AngularJS state (e.g., viewer.coffee, tasks.coffee) will be handled in subsequent PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant