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

My code, <modal *ngIf='showModal' [imageValue]="imageId"></modal> My model component, @Component({ selector: 'modal', templateUrl: './app/modal/modal.component.html', providers: [HeaderClass] })export class ModalComponent { imageValue:any; I want to get the value of this ‘imageValue’ but I dont know how to do it.Can anyone ...

  • 0

I have used a custom directive to detect click outside an element in angular 2 but the same is not possible in angular 4. [plunkr] https://plnkr.co/edit/aKcZVQ?p=info When I try using the same code in angular-4 I get the following errors: 1. Argument of ...

  • 0

I have used a custom directive to detect click outside an element in angular 2 but the same is not possible in angular 4. [plunkr] https://plnkr.co/edit/aKcZVQ?p=info When I try using the same code in angular-4 I get the following errors: 1. Argument of ...

  • 0

How do I get the value from the select option in Angular 4? I want to assign it to a new variable in the component.ts file. I’ve tried this but outputs nothing. Can you also do it using [(ngModel)]? component.html <form class="form-inline" (ngSubmit)="HelloCorp(f)" #f="ngForm"> ...

  • 0

Say I have the following markup: <my-comp myDirective></my-comp>Is there any way I can access the component instance from the directive? More specifically I want to be able to access the properties and methods of MyComponent from MyDirective, ideally without adding anything to the HTML above.

close