I'm just starting out with TypeScript and Angular2 and encountering an issue when trying to call a component function by clicking on an HTML button.
When I use the **onclick="locateHotelOnMap()"**
attribute on the HTML button element, I receive this error:
ReferenceError: locateHotelOnMap is not defined at HTMLButtonElement.onclick
Can anyone assist me with this? In Angular1, I used the directive ng-click to call my controller functions.
How should I approach this now?
Thank you in advance.