Comments (14)
This is a decent request. Probably need to implement it. Thanks!
from riot.
of-course it might somewhat risk the renderer current performance though ;)
from riot.
Yeah. However this doesn't sound too heavy and is useful. I've had the same need as well.
from riot.
great. looking forward then... (I'm afraid to touch that black magic regex function myself :))
from riot.
Seems @potomak did the job already! Support for nested objects is now there. Enjoy!
from riot.
Hi. Tried to use the fix but doesn't seem to work?! :( I get literally the "{obj.property}" string rather than the value.
from riot.
@potomak can you check the above? Thank you!
from riot.
@tipiirai @tpaz I don't see any error, see http://jsbin.com/dezazate/1/edit
I also added a test case for the feature that is passing without errors, see https://github.com/fork-n-roll/riotjs/blob/c3f60ddd09bd46a4374ef49df0163bbb23215d25/test/render_test.js#L67-L69
from riot.
@potomak yes I saw the assertion test. yet in my environment it failed. Sample works indeed. It was a problem in my environment. works charms now :)
from riot.
This is very useful. In my usage I also found this limitation to be too big a nuisance. Thanks for fixing.
from riot.
Yeah. Seems to perform well and doesn't add any logic on the template layer.
from riot.
Hi @potomak - is it possible to use key['property'], e.g. person['firstName'] as per your example, too? I'm guessing not, just posting here to make sure I'm not using it wrong :)
from riot.
@mgustafsson1 no you can't, you can use only .
to reference object properties right now.
from riot.
@potomak That was quick, thank you! Will use dot notation only for now.
from riot.
Related Issues (20)
- question: Dynamically introducing child-components HOT 2
- ":host" bug in css selector HOT 2
- Double rendering on some components HOT 3
- Strange compile issue HOT 3
- .unmount() doesn't work with this.root.innerHTML HOT 3
- regression 7.x-->9.x [update() inside of onMounted()] HOT 4
- the 9.1.0 version route.js can't download HOT 1
- In-browser compilation with spaces after opening { bracket HOT 2
- Fix saucelabs test HOT 2
- cannot use html tags with is keyword HOT 8
- Class duplication HOT 2
- `{props.class}` and `{props.style}` are not printing values on riot-meiosis dispatch HOT 2
- Default props HOT 8
- How to get component instance by a component name? HOT 1
- Selected-Attribute shows Boolean as String HOT 2
- Runtime Slot with custom name HOT 1
- Error updating component with static template HOT 4
- Style compiled incorrectly HOT 2
- Riot coupled with Riot-route crashes on the latest version HOT 3
- Can't update text input value to empty string programatically HOT 2
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 riot.