Comments (4)
@avrahamcool for that purpose I'm excluding all properties prefixed with a double underscore (__).
I haven't yet had the chance to spend time on the data-model and data-source implementations. maybe we should look into the possibility of adding a decorator '@Private' to declare the property definition as 'enumerable: false'
Object.defineProperty(this, {
'propName': {
writable: true,
enumerable: false
})
from aurelia-ui-framework.
indeed I saw that in the code.
but what about the properties that you want to bind into, and you don't want them to be active in the dirty checking
/serialization
etc..
it's ugly to have them with __
in the html
/js
.
a cleaner way would be to pass a parameter that tells the model to explicitly exclude them.
a Private
decorator would suggest that a property is not accessible from outside of that class, in that case that not what we mean.
but the decorator approach is nice and elegant, maybe a different decorator name?
from aurelia-ui-framework.
I agree the current approach is a bit ugly but when I added it I was just looking for a quick-fix solution.
as for the name for a decorator, yes it must not say private instead something to signify non-serializable
from aurelia-ui-framework.
Added @serializable()
decorator for UIModel properties.
Fixed in Version 4
from aurelia-ui-framework.
Related Issues (20)
- An in-range update of copy-webpack-plugin is breaking the build 🚨 HOT 1
- An in-range update of aurelia-binding is breaking the build 🚨 HOT 2
- using the wrong header for REQUEST ?
- An in-range update of webpack is breaking the build 🚨 HOT 5
- An in-range update of mini-css-extract-plugin is breaking the build 🚨 HOT 2
- An in-range update of webpack-dev-server is breaking the build 🚨 HOT 5
- An in-range update of aurelia-validation is breaking the build 🚨 HOT 1
- An in-range update of aurelia-cli is breaking the build 🚨 HOT 2
- An in-range update of prismjs is breaking the build 🚨 HOT 1
- An in-range update of rimraf is breaking the build 🚨 HOT 2
- An in-range update of aurelia-loader-nodejs is breaking the build 🚨 HOT 1
- An in-range update of aurelia-templating is breaking the build 🚨 HOT 1
- An in-range update of acorn is breaking the build 🚨 HOT 2
- An in-range update of webpack-bundle-analyzer is breaking the build 🚨 HOT 2
- Questions, future development HOT 2
- ui-file dropzone not stretching to fill column width HOT 6
- src/libs folder not transpiled
- An in-range update of node-sass is breaking the build 🚨 HOT 1
- TypeError: Cannot read property 'attrToRemove' of undefined at ViewCompiler._compileElement
- Activate V5 Tab
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 aurelia-ui-framework.