Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

I am using Angular 6, NgRx 6, RxJS 6. I have a route guard that looked like this – import { CanActivate, ActivatedRouteSnapshot } from '@angular/router'; import { Injectable } from '@angular/core'; import { Observable, of } from 'rxjs'; import { IAppState } from '../../../app.state'; import ...

  • 0

I have a route guard like below @Injectable() export class AuthGuard implements CanActivate {constructor(private router: Router, private authenticationSvc: AuthenticationService) { }canActivate(): Observable<boolean> { return this.authenticationSvc.getAuthenticatedUser().map( r => { ...

  • 0

I have a component with click. <my-box (click)="openModal()"></my-box>When I click this element, openModal function will run. And I’d like to give 1000ms throttle time in order to prevent opening multiple modals. My first approach was using Subject (from rxJs) //html <my-box (click)="someSubject$.next()"></my-box> //ts public someSubject$:Subject<any> = new Subject(); ...etc subscribeBut I feel ...

  • 0

I am getting the following error in the following plunker. Cannot set property stack of [object Object] which has only a getter Plunker is here Code is as follows: //our root app component import {Component, NgModule, OnInit, Injectable} from '@angular/core' import {BrowserModule} from '@angular/platform-browser' import { ...