What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-17 08:50:02
get previous url angular
//Update angular 6+ //The events.filter gives error because filter is not part of events, so change the code to import { filter, pairwise } from 'rxjs/operators'; this.router.events .pipe(filter((evt: any) => evt instanceof RoutesRecognized), pairwis... Add solution -
PHP 2022-03-17 06:35:44
download file zip from subdirectory using php
<?php // Create ZIP file if(isset($_POST['create'])){ $zip = new ZipArchive(); $filename = "./myzipfile.zip"; if ($zip->open($filename, ZipArchive::CREATE)!==TRUE) { exit("cannot open <$filename>\n"); } $di... Add solution -
Html 2022-03-17 06:00:01
angular html input validation template driven
content_copy <input id="name" name="name" class="form-control" required minlength="4" appForbiddenName="bob" [(ngModel)]="hero.name" #name="ngModel... Add solution -
Javascript 2022-03-16 22:45:14
nodejs gitignore
# Logs logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json # Runtime data pids *.pid *.seed *.pid.lock # Directory for instrumented... Add solution