की क्लिक करें घटना प्रचार सभी बच्चों तत्वों की क्लिक करें घटना प्रसार को रोकने के लिए कैसे:कोणीय 2 स्टॉप सभी बच्चों
<div (click)="openModal()">
<span>Click in this element open the modal</span>
<li>Click in this element open the modal too</li>
<p>Click in this element open the modal too</p>
<input type="button">Click in this element open the modal too</input>
</div>
मैं केवल div
तत्व के साथ मोडल खोलना चाहते हैं। क्या इसे करने का कोई तरीका है?