I am from Laravel
world and a bit new to Angular 2
world, and i am having a hard time to figure out:
Is it possible to override a component or it's template in Angular 2 like we use to override the views of the vendor/custom package in Laravel?
This is a dummy folder structure that might express what i mean to ask:
|-resources
|-assets
|-typescript
|-core
|-core.component.ts //overridded core component and template
|-core.template.html
|-Modules
|-Core
|-Resources
|-assets
|-typescript
|-core
|-core.component.ts //main module component and template
|-core.template.html
core.template.html (Original)
<div>
<p> This is a core component's template</p>
<button>Click me! </button>
</div>
core.template.html (Overridden)
<div>
<p> This is a overridden core component's template</p>
<p> Removed the button and overridden with p-tag </p>
</div>
Hope i have clearly illustrated the problem i am facing.