What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-09 15:44:19
how to unsubscribe from observable created by http
import { Component, OnInit, OnDestroy } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; interface User { id: string; name: string; age: number; } ... Add solution -
Javascript 2021-11-09 14:53:17
sharing data using service angular 6
import { Component, Input } from '@angular/core'; //Child-Component @Component({ selector: 'app-child', template: ` Say {{ message }} `, styleUrls: ['./child.component.css'] }) export class ChildComponent { @Input() childMessage: string; ... Add solution -
Other 2021-11-09 12:49:18
ng validation for ionic checkbox
export class RegisterComponent { registerForm: FormGroup; email = new FormControl('', [Validators.required]); password = new FormControl('', [Validators.required]); termsAndConditions = new FormControl(undefined, [Validators.required]); constr... Add solution -
Javascript 2021-11-07 19:36:11
add custom button in google map angular
<agm-map [latitude]="lat" [longitude]="lng" [zoom]=12 [mapTypeControl]="true" (boundsChange)="centerChanged($event)" (idle)="loadParkings()" (mapReady)="mapReady($event)" (boundsChange)=&q... Add solution -
Javascript 2021-11-07 14:19:11
how to write test cases form behaviorsubject
import { Injectable } from '@angular/core';import { HttpClient } from '@angular/common/http';@Injectable({ providedIn: 'root'})export class UserService { public apiUrl = 'path/to/your/api'; constructor(private http: HttpClient) { } // Http request wit... Add solution -
TypeScript 2021-11-06 16:59:10
como crear un bot para whatsapp
const MessagingResponse = require('twilio').twiml.MessagingResponse; // Dialogflow, IBM Watson, Alexa... export interface NaturalProcessorLanguage { detectIntent(text: string, sessionId?: string): Promise<string>; getMedia(): string; } export c... Add solution -
Javascript 2021-11-06 11:15:10
interceptor in angular 8
// src/app/auth/auth.service.ts import { Injectable } from '@angular/core'; import decode from 'jwt-decode'; @Injectable() export class AuthService { public getToken(): string { return localStorage.getItem('token'); } public isAuthenticate... Add solution -
Javascript 2021-11-06 00:53:11
angular cdk media query
import { Component, OnInit } from '@angular/core'; import { BreakpointObserver, BreakpointState } from '@angular/cdk/layout'; @Component({ ... }) export class AppComponent implements OnInit { public showContainer: boolean; constructor(public breakpoi... Add solution