No you don’t have to create a new module. Take a look at this stackblitz example.
Basically, create your new .ts file, and make sure to export your new class. Then where-ever you want to use that, import that class via the file.
No you don’t have to create a new module. Take a look at this stackblitz example.
Basically, create your new .ts file, and make sure to export your new class. Then where-ever you want to use that, import that class via the file.