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 building an application with Angular (6.0.7) and I am trying to create a service with the new: @Injectable({ providedIn: 'root' }) But how can I type an injection with an Interface? The problem I have 2 services, Authentication.service and SessionStorage.service. I want to inject the ...

  • 0

I am trying to build an application with Angular 6 and I am still setting everything up. But it seems there is something wrong with the dependency injection in my app. It cannot resolve any constructor parameter. They all result in Uncaught ...

  • 0

I tried to inject AccountService in the LoginService but it won’t ,the accountService is undefined but in the other hand the authServiceProvider is defined . Contrarily it injected perfectly in footerComponent. So why the AccountService is injected perfectly in FooterComponent and it ...

  • 0

Check the update on the bottom! I have a service that throws an error while the app is bootstrapping. Cannot read property 'call' of undefined. I’m using ng2 2.4.2 and angular-cli 1.0.0-beta.24. ERROR Uncaught TypeError: Cannot read property ‘call’ of undefined at webpack_require (bootstrap ...

  • 0

I have abstract class(without constructor) and I want to inject another class into it. Abstract class: import { ErrorHandler } from '../../shared/services/errorHandler.service'; import { Inject } from '@angular/core';export abstract class BaseApiComponent<T> { @Inject(ErrorHandler) errorHandler: ErrorHandler;this.errorHandler.test(); } Injected class: import ...