Dismiss
Announcing Stack Overflow Documentation

We started with Q&A. Technical documentation is next, and we need your help.

Whether you're a beginner or an experienced developer, you can contribute.

Sign up and start helping → Learn more about Documentation →

I'am coding an application composed by multiple component made with TypeScript and Angular 1. These components will be reused in other application, I share them with NPM. I'm following basarat exemple (https://github.com/basarat/ts-npm-module) and this work pretty well ! But I got another use case that I can't solve.

Now I have a component composed by multiple sub-components. My application which reference this component need to access elements (var, class, module, ...) from its sub-component. My component is in dependencies section in my package.json's application. I don't want to reference all sub-module in dependencies section of my application.

What do you suggest ?

Do I need to import all elments in my compomnent "main" and re-export to make them visible ? Do I need to use bundleDependencies in my component to reference sub-component ?

Thanks.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.