I've been working on porting my app to v4 and have run into a simple issue that I can't seem to figure out how to properly implement. I wanted to create a custom vtype (any new vtype for that matter) and can't seem to figure out where I'm actually supposed to place the vtype creation code? In the View file? app.js? Any simple sample or direction would be extremely helpful. Thanks!
Also if it's just a vtype, it probably is going to be used across (possibly) multiple files correct? You probably could define it in app.js for now, then move it to a type file at a later point that will be loaded separately?
Maybe include it before(?) bootstap.js?
I did look there but while it shows the 'normal' way of loading it in, it doesn't say where to put it when using the MVC style architecture. I'll stick it in app.js and figure out how to get it to work from there. If anybody has any other suggestions I'm more than welcome to try something different. Thanks.
I've had to leave it in app.js for the moment as I had to move on to other aspects of the application unfortunately. I'm sure there has to be a better way, I just can't spend the time on a 'simple' VType anymore.