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

ViewModel API example confusing; unify HTML + JS via <script>? #254

Open
CODE-REaD opened this issue Jun 11, 2018 · 0 comments
Open

ViewModel API example confusing; unify HTML + JS via <script>? #254

CODE-REaD opened this issue Jun 11, 2018 · 0 comments

Comments

@CODE-REaD
Copy link

CODE-REaD commented Jun 11, 2018

Here is a screenshot of https://canjs.github.io/next/doc/can-component.prototype.ViewModel.html#CallingmethodsonViewModelfromeventswithintheview. I like that a working example is provided, but find it hard to follow because items in the text sample are changed in the working example.

On a related note, I wonder if the working examples would be easier to follow if the HTML and JS sections were combined into a single HTML section which uses <script> to embed the JS?

image

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

No branches or pull requests

3 participants