A global component or global view is an instance that exists beyond the content area and is not
re-created in the course of navigation between different pages. A good example of a global
component is the Pin Bar:

First of all, you need to define the Page Component module in your bundle, which has to extend the
BaseComponent class from the OroUIBundle. If the Page Component module is named
MyComponent, its code has to be placed in a file named my-component.js that lives in the
Resources/public/js/app/components directory of your bundle:

First, the my-module module name is added to the config.paths section to let the building
script know about its location. This way, the building script can trace the dependency and add it
to the build-file (oro.min.js). Once the source file was added to the configuration,
my-module is added to the list of modules that are invoked at the application start using the
appmodules key.

Note

To see your component in action you need to do a few more things:

Clear the Symfony application cache to update the cache and the included RequireJS config: