1

In Angular, is it possible to extend a component that exists inside of an external module and then use that new component as a part of the module without modifying the module itself?

I'm able to extend the component and add additional functionality to it, but i'm unsure of how to connect this new component to the module. I want to keep the module untouched so that it can be updated without having to worry about modifying the new files each time.

1 Answer 1

1

Yes you can extend components. Just add it normally to the module. Check this tutorial to learn more.

Component inheritance DO NOT cover templates and styles. Any shared DOM or behaviours must be handled separately.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.