Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Thanks for responding so quickly and thoroughly. so although the base provides variables and methods they all belong in the heir's scope and the base has no access to the changes. I guess that is understandable but highly disappointing. Inheriting from the base is useful in that it makes variables and functions available that several of my components need but any html will not react to data changes. Major bummer. So why even allow extending components if all you get is class non visual action . May as well use a plain old class. Commented Oct 18, 2024 at 13:55
  • 1
    @FairSite2C Actually, the button calling can be achieved using @Output which emits a event, which the parent component can receive and trigger the click event, maybe you just need to get used to the way angular behaves, but I guarantee you, it can do anything you want to. Inheritance is good for sharing properties and methods. If you want to call methods in another component you should look at @Output and event binding (eventEmitter)="click($event)" angular.dev website is best with its tutorials Commented Oct 18, 2024 at 14:04