What do you want to save?
Add Code snippet
New code examples
-
Other 2021-08-29 16:49:01
auth guard
// src/app/auth/auth.service.tsimport { Injectable } from '@angular/core';import { JwtHelperService } from '@auth0/angular-jwt';@Injectable()export class AuthService { constructor(public jwtHelper: JwtHelperService) {} // ... public isAuthenticated(): ... Add solution -
TypeScript 2021-08-29 08:16:01
stackoverflow ngbdate angular
import {NgbCalendar, NgbDate} from "@ng-bootstrap/ng-bootstrap"; fromDate: NgbDate; toDate: NgbDate; constructor(calendar: NgbCalendar) { this.fromDate = calendar.getToday(); this.toDate = calendar.getNext(calendar.getToday(), 'd', 10); ... Add solution -
Javascript 2021-08-28 08:40:02
paypal subscription based payout api reactjs
import React from 'react';import ReactDOM from 'react-dom'; class PaypalButton extends React.Component { constructor(props) { super(props); this.state = { showButton: false, }; } componentDidMount() { // Todo } componentWillReceiv... Add solution -
Javascript 2021-08-27 23:54:02
react bootstrap hide toggle menu when scrolling down
import React, { Component } from 'react'; class App extends Component { constructor(props) { super(props); this.state = { scrollBackground: 'nav-bg' }; this.handleScroll = this.handleScroll.bind(this); } handleScroll(){... Add solution
Best helpers
Ranking is empty