Consider the following component structure:
app1
-- app1.component.html
-- app1.component.ts
parent1
parent2
app2
-- app2.component.html
-- app2.component.ts
Is it possible to efficiently reuse the app2
component within the app1
? This would involve reusing a table - both HTML and TypeScript logic - without resorting to copying and pasting code.
I have explored solutions such as ng-template
, but have not found success. Attempting to call the tag directly has also proven unsuccessful.