Comments (4)
Can you post a code example? I think I know what you mean, just want to check
from ripple.
I first noticed this when trying to run the following:
customSMSTemplate = """
<div class="SMSList">
<div class="SMSList-add">
<input type="text" ref="number" on-enter="{{ this.add }}" />
<button on-click="{{ this.add }}">Add</button>
<button on-click="{{ this.sort }}" hidden="{{ emptyList }}">Sort</button>
<button on-click="{{ this.clear }}" hidden="{{ emptyList }}">Remove All</button>
</div>
<ul class="SMSList-list">
<li each="{{items}}" >{{number}} <button on-click="{{ this.removeItem.bind(this, $index) }}">Remove</button></li>
<li class="empty">Message when no data</li>
</ul>
</div>
"""
from ripple.
Mainly because it causes weird complications with having to worry about the order bindings are processed. That leads to a whole lot of weird mess that can usually be avoided by modifying the markup a little bit.
It could work if there was a limitation that you couldn't use other directives on the same element if you're using each
. It's also a design of the plugin and not ripple, so we can change that without it affecting core :)
from ripple.
Sure, thanks for the clarification. As I've said, it was more curiosity than anything and indeed im more interested in explore how to control that kind of stuff with directives.
from ripple.
Related Issues (20)
- Uncaught TypeError on data array event attachment HOT 3
- Compose doesn't correct work HOT 1
- Bower HOT 1
- Multiple views, singe data source? HOT 1
- Example setup without using Component HOT 4
- Emit "mounted" event on child views
- how does data flow to children? HOT 5
- Template Spec (or Documentation) is Unclear... HOT 3
- FRP constructs HOT 1
- Event handlers to Views created with selectors HOT 3
- Push latest to npm HOT 1
- 0.6.0 API changes HOT 16
- Conditionals HOT 2
- Ripple + jade HOT 2
- Reactive arrays HOT 3
- How to compose views one inside of the other?
- CustomEvent is not newable in IE11
- 'template' definition needed
- doc correction
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 ripple.