Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
300 views
in Technique[技术] by (71.8m points)

How to listen to events which defined on the host of the angular custom structural directive

I have a custom structural directive with event binding on it

<button *columnsBox="let box template 'alerts'" (click)="doSomething()">
   Click
</button>

With my custom structural directive, the root button tag will be removed, but I still want to listen to the click event, and any other events which could be bind here.

How can I solve this? Thanks


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...