I have two projects both developed in Angular 2, let say first project is test-core and second project is test-sail. Both the project structures have been created using Angular-cli.
test-core structure:
If you look at the app.module.ts in the test-sail, where we are importing AppComponent of test-sail, I want to import AppComponent of test-core and I was doing something like this (after running both the application on the local server):
import { AppComponent } from 'http://localhost:4200/test-core/src/app/app.component';
but this didn't work. If I directly hit that url it works. Is it possible to load a component from one Angular project to another. If yes please help me out.
Thanks in advance.