Top "Angular2-directives" questions

Use for questions about Angular 2+ directives

Angular 4: Dynamic template with interpolation

I'm building a data table component that is being designed as very generic component. The idea is to define the …

angular typescript angular2-directives angular2-components
Angular 2 ngClass: Get Got interpolation ({{}}) where expression was expected when trying to display json on html

I'm new to Angular 2 and was hoping to get some help from the community. I'm currently trying to implement a …

json angular angular2-directives ng-class
Component as Injectable?

I am trying to build my own Modal component, that I would be able to reuse throughout my Angular2 Apps. …

angular angular2-directives angular2-services
Directive that works as ng-if (Angular 2)

I'm trying to create a directive that works as a ngIf to control if the user with the correct permission …

angular typescript angular2-directives
Apply attribute directive on component in Angular 4

I have created img-pop component which has @Input() bind property src. I have created authSrc directive which has @HostBinding() property …

angular angular2-directives angular-components angular2-hostbinding
mouseenter / mouseleave with @HostListener

The flickering is killing me and after reading all the jQuery related threads and mdn I still cannot figure it …

angular typescript mouseevent angular2-directives angular2-hostbinding
*ngIf does not react to boolean change

Here are some pieces of code. This same pattern (afaik) works for the hero tutorial. login.component.html: <div …

angular angular2-directives angular-directive