0

Reviewing the code for the angular-svg-round-progressbar component. The module definition exports the class for the RoundProgressModule, but also exports the services (etc) that it uses like this:

export * from './round-progress.component';
export * from './round-progress.service';
export * from './round-progress.ease';
export * from './round-progress.config';

Is this necessary?

Ole
  • 41,793
  • 59
  • 191
  • 359
  • does not appear to be necessary. The only time it is necessary is if an API is being used by the module and the exporting the API for others to use. – Randy Casburn Feb 24 '18 at 05:27
  • https://stackoverflow.com/questions/37564906/what-are-all-the-index-ts-used-for does this help? – Haifeng Zhang Feb 24 '18 at 07:08

0 Answers0