What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-10 15:18:03
angular 12 service for create update delete local storage items
import { Injectable } from '@angular/core'; import { Subject } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class LocalStorageService { localStorage: Storage; changes$ = new Subject(); constructor() { this.localStorage = window.lo... Add solution -
Other 2021-09-10 13:43:02
Datepicker ionic
import { DatePicker } from '@ionic-native/date-picker/ngx'; constructor(private datePicker: DatePicker) { } ... this.datePicker.show({ date: new Date(), mode: 'date', androidTheme: this.datePicker.ANDROID_THEMES.THEME_HOLO_DARK }).then( date ... Add solution -
C++ 2021-09-10 12:21:02
defining class in other file in c++
//ClassOne.hpp: class ClassOne { public: ClassOne(); // note, no function body int method(); // no body here either private: int member; }; //ClassOne.cpp: #include "ClassOne.hpp" // implementation of constructor ClassOne::Class... Add solution -
Other 2021-09-10 04:34:01
Camera flutter
import 'dart:async'; import 'dart:io'; import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; Future<void> main() async { // Ensure that plugin services are initialized so that `availableCameras()` // can be called before... Add solution -
C++ 2021-09-10 03:34:03
what is time complexity of swap function
The Behaviour is Equivalent to: template <class T> void swap ( T& a, T& b ) { T c(a); a=b; b=c; } Syntax : Swap(a,b) // a = Number 1 , b = Number 2 Time Complexity: It makes one constructions and one assignments So, Linear O(n) time. Add solution -
TypeScript 2021-09-09 06:45:03
pass data in route angular
// Send user data let navigationExtras: NavigationExtras = { state: { user: this.user } this.router.navigate(['details'], navigationExtras); // Acess data in details page .... constructor(private route: ActivatedRoute, private router: Router) { th... Add solution
Best helpers
Ranking is empty