Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

angular stoppropagatio

import {Directive, HostListener} from "@angular/core";

@Directive({
    selector: "[click-stop-propagation]"
})
export class ClickStopPropagation
{
    @HostListener("click", ["$event"])
    public onClick(event: any): void
    {
        event.stopPropagation();
    }
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: onclick change image javascript example 
Javascript :: axios get data 
Javascript :: javascript how to increment by other than one in for loop 
Javascript :: check if numbers are consecutive javascript 
Javascript :: copy one array to another javascript 
Javascript :: js window history 
Javascript :: localdatetime json 
Javascript :: react private route 
Javascript :: como actualizar nodejs 
Javascript :: factorial javascript function 
Javascript :: remove char from string js 
Javascript :: javascript eval passing variable 
Javascript :: @react-google-maps/api npm 
Javascript :: react fragment 
Javascript :: difference between indexof and search in javascript 
Javascript :: get value from json object in javascript 
Javascript :: pyramid javascript 
Javascript :: deleteOne 
Javascript :: All Longest Strings javaScript 
Javascript :: jquery li count in ul 
Javascript :: javascript object chain 
Javascript :: axios add no cors 
Javascript :: discord.js remove every role a user has 
Javascript :: automatically select current date in date input javascript 
Javascript :: puppeeter mac m1 
Javascript :: enzyme-to-json 
Javascript :: substring 
Javascript :: javascript calculate aspect ratio 
Javascript :: javascript string to variable 
Javascript :: set css var with javascript 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =