LearnNewsExamplesServices
Frontmatter
id1788
titlemodel.Component: createBindingByFormatter(), getDataScope()
stateClosed
labels
enhancement
assigneestobiu
createdAtApr 15, 2021, 5:25 PM
updatedAtApr 15, 2021, 5:25 PM
githubUrlhttps://github.com/neomjs/neo/issues/1788
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 15, 2021, 5:25 PM

model.Component: createBindingByFormatter(), getDataScope()

Closed v8.1.0 enhancement
tobiu
tobiu commented on Apr 15, 2021, 5:25 PM

in case we access nested data inside a parent model, it can happen that a key root does not exist inside the current model.

example: data.user.firstname

would try to check if firstname exists on data.user which does not exist here.

so we need to add a check for the scope.

i will also add an empty object into getDataScope() as a placeholder. You can create models without any data which need parent access.

tobiu added the enhancement label on Apr 15, 2021, 5:25 PM
tobiu assigned to @tobiu on Apr 15, 2021, 5:25 PM
tobiu referenced in commit dfb27e5 - "model.Component: createBindingByFormatter(), getDataScope() #1788" on Apr 15, 2021, 5:25 PM
tobiu closed this issue on Apr 15, 2021, 5:25 PM