Answer the question
In order to leave comments, you need to log in
How to include a component from another directory not in the current project in Angular 2?
Is it possible to import components from outside, for example from another project that is in a different folder.
That is, something like import { TestComponent } from '/home/user/myprojest/comonents/test/components';
Answer the question
In order to leave comments, you need to log in
Perhaps if you configure the angular cli correctly.
In general, if you need to load a component in this way, something has gone wrong. Why?
The component was not transferred to the current project, so as not to drag dependencies?
If one component is needed on both projects, it can be abstracted and taken out as a library and connected through dependencies.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question