What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-16 19:51:02
add a route to a buttoin in angular
<button type="button" class="btn btn-primary-outline pull-right" (click)="btnClick();"><i class="fa fa-plus"></i> Add</button> // myComponent.component.ts file import { Router } from '@... Add solution -
Kotlin 2021-09-16 03:07:02
android vertical seekbar github
import android.content.Context import android.graphics.Canvas import android.util.AttributeSet import android.view.MotionEvent class VerticalSeekBar : androidx.appcompat.widget.AppCompatSeekBar { private var changeListener: OnSeekBarChangeListener? ... Add solution -
TypeScript 2021-09-16 00:53:02
how to pass data to another page in ionic 3
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; @Component({ selector: 'app-details', templateUrl: './details.page.html', styleUrls: ['./details.page.s... Add solution -
Javascript 2021-09-15 19:21:04
function prototype javascript
/*Prototype is used to add properties/methods to a constructor function as in example below */ function ConstructorFunction(name){ this.name = name //referencing to current executing object } ConstructorFunction.prototype.age = 18 let objectName = new ... Add solution -
Javascript 2021-09-15 19:10:04
react how to pass the input target value
class NameForm extends React.Component { constructor(props) { super(props); this.state = {value: ''}; this.handleChange = this.handleChange.bind(this); } handleChange(event) { this.setState({value: event.target.value}); } rend... Add solution -
TypeScript 2021-09-15 19:02:01
Adding API request
import { Component, OnInit } from '@angular/core';import { HttpClient } from '@angular/common/http';...import { Quote } from '../quote-class/quote';....export class GoalComponent implements OnInit { goals:Goal[]; alertService:AlertServi... Add solution -
TypeScript 2021-09-15 18:29:02
typescript types for state
interface IProps { } interface IState { playOrPause?: string; } class Player extends React.Component<IProps, IState> { // ------------------------------------------^ constructor(props: IProps) { super(props); this.state = { pl... Add solution
Best helpers
Ranking is empty