LearnNewsExamplesServices
Frontmatter
id1577
titlecomponent.Base: getModel()
stateClosed
labels
enhancement
assigneestobiu
createdAtMar 25, 2021, 9:40 AM
updatedAtMar 25, 2021, 9:50 AM
githubUrlhttps://github.com/neomjs/neo/issues/1577
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 25, 2021, 9:50 AM

component.Base: getModel()

Closed v8.1.0 enhancement
tobiu
tobiu commented on Mar 25, 2021, 9:40 AM

since not every component has its own model, the method should return the model instance in case it exists, otherwise return the closest model it finds inside the parent tree.

similar to getController().

tobiu added the enhancement label on Mar 25, 2021, 9:40 AM
tobiu assigned to @tobiu on Mar 25, 2021, 9:40 AM
tobiu referenced in commit df9c536 - "component.Base: getModel() #1577" on Mar 25, 2021, 9:50 AM
tobiu closed this issue on Mar 25, 2021, 9:50 AM