What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-07 09:59:02
ngif is string angular
<div *ngIf="item==='somevalue'"> Add solution -
Javascript 2021-09-06 16:02:02
angular testing mock service
import { TestBed } from '@angular/core/testing';import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing';import {Dog, DogService} from './dog.service';export const mockDog: Dog = { message: 'https://images.... Add solution -
Javascript 2021-09-06 07:51:01
ng2 validations angular using reactiveforms
<form [formGroup]="form"> <input type="password" formControlName="password"/> <p *ngIf="form.controls.password.errors?.required">required error</p> <input type="password" f... Add solution -
Javascript 2021-09-05 04:13:02
using javascript when i ' m iterate localstorage current input value my DOM its Add multiple value or perivous value of localstorage ?
//featch data from form // class Book{ // constructor(givenNAme , givenAuthor , givenType){ // this.name = givenNAme; // this.author = givenAuthor; // this.type = givenType; // } // } // display function class Display {... Add solution