Alain Chautard
1 min readMar 19, 2019

--

Thanks! You don’t have to duplicate content because the Angular build will pull all of the dependencies (including other components) to create your element. So the answer is yes, you can access things from your main project.

For the build process, you can implement the exact script I included in that article, that would do it. If you don’t do anything specific in terms of build config then the element is going to be part of your main Angular build, which is fine but defeats the purpose of exporting single elements since you would have to bring the entire app code along with your element in that case.

--

--

Alain Chautard
Alain Chautard

Written by Alain Chautard

Google Developer Expert in Angular, Consultant and Trainer at http://www.angulartraining.com

No responses yet