Comments (2)
The _fieldName
property only shows up on parent fields, as the option name tagParentsWithName
suggests. To let it show up on all fields you need to bypass the hasSubChildren
condition in ``if (subHasChildren && options.tagParentsWithName === true && !sub['_fieldName'])`. You can achieve this by simply removing it for the time being. Guess I'll make it a standard option in the next update if this works out well for you.
As for the uncaught deletions you might consider using imageArr.remove(this)
instead of imageArr.splice($index,1)
as a quick workaround. Not sure why it's not working with splice
but I'll look deeper into it when I have the time.
from knockoutjs-reactor.
The field names are no longer limited to the parents only, by default, in the latest beta version. Just make sure the tagFields
option is set to true. As for deletions you need to need to use $root.imageArr.splice($index,1)
or even $root.imageArr.remove($data)
instead of imageArr.splice($index,1)
. I'll be updating the demo soon so that it can properly display the full location path for every update and that will include array indexes as well!
from knockoutjs-reactor.
Related Issues (20)
- disposal does not work when mutable and not oldValues
- Multiple watch break on dispose HOT 2
- Bower Accessible HOT 12
- Cannot ignore observable arrays HOT 3
- AMD module support HOT 2
- How can we reset it? HOT 1
- Not Compatible with knockout 3.4 HOT 3
- Uncaught Subscriptions field (.G) not defined for observable child HOT 3
- Issue with KO 3.3.0 and the minified reactor HOT 1
- "un-watch" functionality... HOT 1
- New release? HOT 3
- Uncaught Subscriptions field (.K) not defined for observable child Error only when using knockout.debug HOT 9
- npm ko-reactor version is stuck at 1.3.7 HOT 7
- Not working corrrectly with KO 3.4.2
- Keep notifying changes for replaced objects
- Bad parents in the notifications when sub-objects are replaced
- Basic functional test suite HOT 1
- How use a ko-reactor with require() and webpack?
- Missing "main" declaration in package.json HOT 1
- KO Reactor / KO Undo Manager compatibility (context is not a function) 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 knockoutjs-reactor.