LearnNewsExamplesServices
Frontmatter
id8275
title[Neural Link] Export controller in component.Base.toJSON
stateClosed
labels
enhancementai
assigneestobiu
createdAtJan 1, 2026, 7:37 PM
updatedAtJan 3, 2026, 8:35 PM
githubUrlhttps://github.com/neomjs/neo/issues/8275
authortobiu
commentsCount0
parentIssue8200
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 3, 2026, 8:35 PM

[Neural Link] Export controller in component.Base.toJSON

Closed v11.18.0 enhancementai
tobiu
tobiu commented on Jan 1, 2026, 7:37 PM

Export the controller configuration in toJSON.

Implementation:

  • If this.controller exists:
    • Return the result of this.controller.toJSON().
  • If it is null/undefined:
    • Return null.

Note: Any raw configuration object passed to the controller config will have been consumed and converted into an instance by the framework (via beforeSetController). So we only need to handle the instance or null case.

Goal: Allow Neural Link to identify and inspect the controller managing a component.

tobiu added the enhancement label on Jan 1, 2026, 7:37 PM
tobiu added the ai label on Jan 1, 2026, 7:37 PM
tobiu added parent issue #8200 on Jan 1, 2026, 7:37 PM
tobiu assigned to @tobiu on Jan 1, 2026, 7:47 PM
tobiu referenced in commit 155a3d7 - "feat(component): Export controller in component.Base.toJSON (#8275)" on Jan 3, 2026, 8:34 PM
tobiu closed this issue on Jan 3, 2026, 8:35 PM