What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-08 14:08:02
Back button directive Angular
/** Navigation service ***/ import { Injectable } from '@angular/core' import { Location } from '@angular/common' import { Router, NavigationEnd } from '@angular/router' @Injectable({ providedIn: 'root' }) export class NavigationService { private hist... Add solution -
Other 2021-09-08 05:10:02
how to check if a binary tree is a binary search tree
class BTNode { constructor(value) { this.value = value; this.left = null; this.right = null; } } /** * * @param {BTNode} tree * @returns {Boolean} */ const isBinarySearchTree = (tree) => { if (tree) { if ( tree.left &am... Add solution -
Javascript 2021-09-07 23:41:02
how to add toaster in angular 9
npm install ngx-toastr --save npm install @angular/animations --save // angular.json "styles": [ "styles.scss", "node_modules/ngx-toastr/toastr.css" // try adding '../' if you're // using angular cli before ... Add solution -
Javascript 2021-09-07 19:16:02
redirect angular
import { RoleComponent } from './role/role.component'; import { AppComponent } from './app.component'; import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; const routes: Routes = [ { path: '', re... Add solution -
Other 2021-09-07 16:34:01
flutter video player
import 'dart:async'; import 'package:flutter/material.dart'; import 'package:video_player/video_player.dart'; void main() => runApp(VideoPlayerApp()); class VideoPlayerApp extends StatelessWidget { @override Widget build(BuildContext context) { ... Add solution -
Python 2021-09-07 12:04:01
py fhir
# Import the relevant classes from fhir.model from fhir.model import Patient, HumanName, Identifier, CodeableConcept, Coding, uri # Create a new Patient object. Resource attributes can be passed in the constructor. Note # that 'id' is the logical id of t... Add solution
Best helpers
Ranking is empty