Using Angular component in Edoras Form Model

We are using Edorasone. Could you please guide us on how we can use our angular component in Edoras Form Model.

  1. Should we need to build the angular code and refer the JS in custom.js file?
  2. How to register the component in engine view.

I could find below snippet in edoras documentation. However it is not clear whether I need widget then only I can use angular component.

module: // angular module name to be used by the framework dependency injection
config: // widget configuration (check in widget creation guide)
name: // name of the widget used by the View Engine
type: // one of the types provided by edoras.configuration.widgets.types

Please guide.