Comments (2)
Short answer is you can't, because that introduces unsolvable problems about re-ordering keys on objects.
An approach that will work is converting the data to an array:
[
{ name: 'edward', sex: 'male' },
{ name: 'nancy', sex: 'female' }
]
Had the data been a dictionary, you can't re-order the keys without constantly rewriting the dictionary (i.e. try moving "nancy" to index zero). Just use the right data structure for the job.
from simulacra.
Got it. Thanks for your reply. :)
from simulacra.
Related Issues (20)
- Example use cases HOT 1
- Initialize Change Function HOT 5
- Lisp rewrite HOT 2
- How to add change binding HOT 10
- Split helpers into separate build
- Rework path
- Home site simulacra.js.org does not work in IE11 HOT 3
- Data propagation from DOM to state HOT 2
- Question: detect mount of the whole component HOT 17
- TODOs
- [Homepage/Usage example]: Example not working (ReferenceError: x is not defined) HOT 2
- Merging states or flexible objects? HOT 6
- Conditional rendering example HOT 12
- More example
- JS Benchmark - Keyed Version HOT 1
- cdn example HOT 5
- IE11 table bindObject render error HOT 3
- Why does order of the bindings matter? HOT 3
- Is it safe to move DOM nodes? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simulacra.