What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-26 00:53:04
transfer data from one component to another angular
import { Component, Output, EventEmitter } from '@angular/core'; @Component({ selector: 'app-child', template: ` <button (click)="sendMessage()">Send Message</button> `, styleUrls: ['./child.component.css'] }) export c... Add solution -
-
Other 2021-09-25 23:12:03
zoom with button d3
let zoom = d3.zoom().on("zoom", zoomed); let svg = d3.select("svg") .attr("width", "100%") .attr("height", "100%") .style("background-color", "#eeeeee") .call(zoom) ... Add solution -
TypeScript 2021-09-25 17:16:02
testing inputs with react testing library
import React from 'react' import { render, fireEvent } from '@testing-library/react' class CostInput extends React.Component { state = { value: '', } removeDollarSign = value => (value[0] === '$' ? value.slice(1) : value) getReturnValue =... Add solution