What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-10-30 06:48:08
input property angular
/* @Output() - allows data to flow from the child class to the parent class - normally initialized with EventEmitter */ // Parent Component import { Component } from '@angular/core' @Component({ selector: app-component, template: ` <app-item... Add solution -
Javascript 2021-10-28 10:20:13
nativescript gridLayout swipe
import { Component } from "@angular/core"; import { SwipeGestureEventData } from "tns-core-modules/ui/gestures"; @Component({ moduleId: module.id, templateUrl: "./swipe.component.html" }) export class SwipeExampleCom... Add solution -
Javascript 2021-10-27 02:46:17
foreach function into arrow with addeventlistener
const toggleElements = document.querySelectorAll('.toggle'); toggleElements.forEach(el => { el.addEventListener('click', () => { this.classList.toggle('active'); // `this` refers to `window` // Error: Cannot read property 'toggle' of undef... Add solution -
Javascript 2021-10-25 13:28:11
callback functions javascript
Events - Think of a Server (Employee) and Client (Boss). One Employee can have many Bosses. The Employee Raises the event, when he finishes the task, and the Bosses may decide to listen to the Employee event or not. The employee is the publisher and the b... Add solution -
Other 2021-10-23 13:36:09
what is webworker
web worker Web Workers are a mechanism to create a separate thread in parallel to your main JS program thread. can only communicate with each other through normal async events always abide by the event-loop one-at-a-time behavior required by run-to-co... Add solution -
Javascript 2021-10-21 10:32:10
how many threads does node js use
Node.js runs JavaScript code in the Event Loop (initialization and callbacks), and offers a Worker Pool to handle expensive tasks like file I/O. Node.js scales well, sometimes better than more heavyweight approaches like Apache. The secret to the scalabil... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5