Top "Angular2-directives" questions

Use for questions about Angular 2+ directives

Angular 4 Can't bind to <property> since it isn't a known property of <component>

I'm trying to create my own directive in Angular 4. But, I got this error when bind the property of class …

angular typescript angular2-directives
Angular2 forEach cant read property

How can I call this.firms within a data forEach()? I know how to do this in Angular1, but not …

javascript angular angular2-directives
Angular2 get window width onResize

Trying to figure out how to get window width on resizing events in Angular2. Here is my code: export class …

css typescript angular angular2-directives
How to import jQuery to Angular2 TypeScript projects?

I want to wrap some jQuery code in an Angular2 directive. I installed jQuery library for Typings into my project …

jquery angular typescript angular2-directives typescript-typings
*ngIf and *ngFor on <td></td> element

I have a situation where I need *ngIf and *ngFor directive on the same element. I found lot of answers …

angular angular2-directives
HTML check variable undefined with ngIf excluding case when value is 0

I am using Angular 2 and would like to check if a variable value is undefined using the htm *ngIf condition. …

angular angular2-template angular2-directives
How to declare a directive globally for all modules?

I'm developing a Github repo which follows the offical tutorial of Angular (Tour of Heroes). You can see all the …

angular angular2-directives angular2-modules
Angular 2 Best approach to use FileSaver.js

I need to use the FileSaver.js (https://github.com/eligrey/FileSaver.js/) in my Angular2 application. I know I …

angular angular2-directives angular2-services filesaver.js
How to implement a draggable div in Angular 2 using Rx

I've been trying to get a draggable div working using Angular 2. I'm using this example from the angular2-examples repo …

angular angular2-directives rxjs5
Angular 2 Change Class On Condition

I have three buttons in a view and on page load I am displaying the first buttons content. Once a …

javascript angular typescript angular2-template angular2-directives