Skip to content

Error when creating Views js component #90

Answered by vovayatsyuk
pk-pankaj asked this question in 1. Help
Discussion options

You must be logged in to vote

The issue is caused by your View not being attached to any DOM element. Usually, there should be a DOM element with a scope attribute to make it work (data-bind="scope: 'wishlist'")

Since you do not render anything/using DOM you don't need a view or widget, I think you should use raw js file in this case. Take a look at theme.js for example.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vovayatsyuk
Comment options

Answer selected by pk-pankaj
@pk-pankaj
Comment options

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