I would like to be able to only load a JavaScript file when the current view is a ComponentView.
So something in the lines of:
<cfg:group name ="groupname" applyTo="ComponentView">
<cfg:fileset>
<cfg:file type="script">/javascriptfile.js</cfg:file>
</cfg:fileset>
</cfg:group>
Is there something available like this?
I know that you can do this within JavaScript ($display.getView()getId() === "ComponentView") but then the file is already loaded.