LearnNewsExamplesServices
Frontmatter
id1745
titlemodel.Component: support binding stores to any config name
stateClosed
labels
enhancement
assigneestobiu
createdAtApr 9, 2021, 10:12 PM
updatedAtApr 9, 2021, 11:32 PM
githubUrlhttps://github.com/neomjs/neo/issues/1745
authortobiu
commentsCount3
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 9, 2021, 11:32 PM

model.Component: support binding stores to any config name

Closed v8.1.0 enhancement
tobiu
tobiu commented on Apr 9, 2021, 10:12 PM

the first version is too limiting, since it only allows to map a view model store to a config called store.

it should be possible to add a store to any config name.

to make this happen, we need a unique identifier to see if a value is a store.

bind: {
    store: 'stores.myStore'
}
tobiu added the enhancement label on Apr 9, 2021, 10:12 PM
tobiu assigned to @tobiu on Apr 9, 2021, 10:12 PM
tobiu referenced in commit 4f482e0 - "#1745 resolveStore() method => working version for bindings into the closest view model" on Apr 9, 2021, 10:23 PM
tobiu referenced in commit 95c625e - "#1745 support for binding to stores inside of parent view models" on Apr 9, 2021, 11:00 PM
tobiu
tobiu Apr 9, 2021, 11:01 PM
Screenshot 2021-04-09 at 22 57 45
Screenshot 2021-04-09 at 22 57 22

Screenshot 2021-04-09 at 22 56 38

tobiu
tobiu Apr 9, 2021, 11:01 PM

will remove the dummy testing model & log again

tobiu referenced in commit 1fe2aba - "#1745 removing the testing log & dummy examples model" on Apr 9, 2021, 11:02 PM
tobiu referenced in commit cccad54 - "#1745 adjusted the createBindings() logic to ignore store values inside the bind config" on Apr 9, 2021, 11:30 PM
tobiu
tobiu Apr 9, 2021, 11:32 PM

done.

tobiu closed this issue on Apr 9, 2021, 11:32 PM