Frontmatter
| id | 1577 |
| title | component.Base: getModel() |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Mar 25, 2021, 9:40 AM |
| updatedAt | Mar 25, 2021, 9:50 AM |
| githubUrl | https://github.com/neomjs/neo/issues/1577 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Mar 25, 2021, 9:50 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().