Are there any examples on using DocumentJS with components, viewModels, and the define plugin?


I’'ve been playing around with DocumentJS and using it to document components.

I’ve figured that you can use the @prototype tag for methods on the component viewModel, but I’m not really sure of the best way to document properties in the define object, since I want them to be visibly separated from the prototype section etc.

In addition, some of the components might emit events, so it would be nice to group those also.


Yes, checkout bitballs:

It’s pretty fully documented:


Awesome, this is very helpful.