Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alias "data-bind" to "db" or sth shorter #2346

Open
fuchao2012 opened this issue Feb 11, 2018 · 7 comments
Open

Alias "data-bind" to "db" or sth shorter #2346

fuchao2012 opened this issue Feb 11, 2018 · 7 comments

Comments

@fuchao2012
Copy link

as desc in title

@chrisknoll
Copy link

I believe the purpose of the data-* format is that's what the HTML spec recommends for those types of attributes.

@mbest
Copy link
Member

mbest commented Feb 12, 2018

related: #2202

@brianmhunt
Copy link
Member

Incidentally, this will be fairly straightforward in tko with a custom build.

@crystalfp
Copy link

HTML5 compliance require the attribute name starts with data-.

Anyway, I tried VUE.js and its binding starts with v- and I don't like them. Just a personal preference.

@codymullins
Copy link

I don't mind as much the data- attributes as I do the syntax for passing observables and actions. Be nice to be able to just do data-click or data-css which I think my actually be in tko....correct me if I'm wrong @brianmhunt

@brianmhunt
Copy link
Member

@codymullins Yes it is, but it's not turned on or documented or especially well tested. It's on my TODO for shortly after we fix all the knockout-3.4/5 tests.

@martonx
Copy link

martonx commented Jun 15, 2018

I like the idea. Angularjs use ng-whatever. Vue use v-whatever. Knockoutjs should use ko-whatever or db-whatever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants