So, the question is fairly simple...  I have a table and some angular logic on it (calculating styles, etc)... specifically I have this on THs  [class.hidden] = "column.group !== 'key-data' && currentTableView !== column.group"...
Basically I'm looking for a way to implement a counterpart to Angular 1.x ngInit directive.  I'm aware of ngOnInit hook and the fact that it is the recommended place for initialization code. I consider ngInit directive a quick, declarative  w...
I have a component to which I am passing a template. Inside of this component I would like to pass context so that I could display data.  @Component({   selector: 'my-component',   providers: [],   template: `     <template [ngTemplateOutl...
Using the   TouchEvent   type in a directive is resulting in the following error in Safari desktop  ReferenceError: Can't find variable: TouchEvent   The Typescript source code is  @HostListener('touchstart', ['$event']) onTouchst...
Trying to place a component dynamically to a child element, using a directive.  The component (as template):  @Component({   selector: 'ps-tooltip',   template: `     <div class="ps-tooltip">       <div class="ps-tooltip-...
I have a component which features a set of 3 custom buttons and I want to use these buttons as controls for a sound recorder. I got stuck in the first phase, where I want to change the symbols displayed on the buttons, according to their function. I...
If I have a simple button with a click handler and a custom attribute directive like so:  <button  (click)="save()" attributedirective="project saved">Save</button>   And in my attribute directive I'm using the hostlis...
I have an input with [disabled] depending upon the ngModel of another input. Initially [disabled] is working properly but not when we change the dependant input value, the [disabled] property is not working. How to apply two binding on [disabled] pro...
I want to implement a "TrimDirective", which deletes leading and trailing spaces from input fields, with Angular 2 RC 5 and model driven / reactive forms.  I managed to change the value of the input field, however I don't get a new value...
I've created a directive in Angular that checks if two controls have value. If one of them has been filled, the other must be filled too, so they have to be both empty or both filled. This is working fine so far.  This directive must be disabled...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.