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 upgraded my Angular from 4 to 6, and consequently had a problem with my click-off policy, it stopped working on all components. my directive: import { Directive, Output, EventEmitter, ElementRef, HostListener } from '@angular/core';@Directive({ selector: '[clickOutside]' }) export class ClickOutsideDirective {...

  • 0

I have an Angular 1.x directive that appends an element. In short: app.directive('mydirective', function() { template: '<ng-transclude></ng-transclude>', link: function(el) { var child = angular.element("<div/>"); el.append(child); }I can migrate this directive to Angular ...

  • 0

I’m confused a bit. I need to hide block if result have one of several cases. But seems it not working correctly… <div *ngIf="currentStatus !== 'open' || currentStatus !== 'reopen' "><p padding text-center class="text-notification">{{message}}</p></div> It’s just appeared with ...

  • 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

I would like to display different template in my component. Only one will show. If hasURL is true, I want to show the <a></a>. If hasURL is false, I want to show the <button></button>. The problem if hasURL is false, the component show button, but the ng-content is empty. ...

close