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

Is it possible to declare a component with a generic type in Angular 4? The following code causes build errors: export class MyGenericComponent<T> implements OnInit { @Input() data: BehaviorSubject<T[]>;//... } The error when executing ng serve is: ERROR in C:/.../my-generic.module.ts (5,10): Module '"C:/.../my-generic.component"' has no exported member 'MyGenericComponent'. Example: The ...

  • 0

My Page structure is: <app-header></app-header> <router-outlet></router-outlet> <app-footer></app-footer> How can I update/refresh the app-header component, without refreshing the whole page? I want to hide a “Sign-In” link in the header, once the user had successfully logged in. The header is common in all the components/routes.

  • 0

I am trying to build a custom component using multiple ng-content in Angular 6, but this is not working and I have no idea why. This is my component code: <div class="header-css-class"> <ng-content select="#header"></ng-content> </div> <div class="body-css-class"> <ng-content select="#body"></ng-content> </div>I am trying to use this component in another ...

  • 0

I’m trying to use a component I created inside the AppModule in other modules. I get the following error though: “Uncaught (in promise): Error: Template parse errors: ‘contacts-box’ is not a known element:If ‘contacts-box’ is an Angular component, then verify that it ...

close