Top "Angular2-directives" questions

Use for questions about Angular 2+ directives

Angular2 Directive to modify click handling

I am trying to write a Angular2 attribute directive to modify the behaviour of certain elements. More specifically I want …

javascript angular ionic2 angular2-directives
ngFor is not working

I am using Angular 4.3.3 with the JIT compiler and get the error below when I run my application: Property binding …

angular angular2-directives
Accessing `selector` from within an Angular 2 component

I'm trying to figure out how I can access the selector that we pass into the @Component decorator. For example @…

angular angular2-directives angular2-components angular2-decorators
Change an input's ngModel value using a directive Angular 2

I'm stuck on how to access and change an inputs ngModel value using a directive. The outcome of the issue …

angular angular2-directives
Passing context to template through ngOutletContext in Angular2

I have a component to which I am passing a template. Inside of this component I would like to pass …

javascript angular typescript angular2-template angular2-directives
Disable ngbDatepicker input

Im using ngbDatepicker and ng2-datepicker-jalali. I use ngbDatepicker directive like below: <div class="input-group" dir="ltr"> <…

angular angular2-forms angular2-directives ng-bootstrap
Angular2 (final version) *ngFor in component: Can't bind to 'ngForOf' since it isn't a known property of 'div'

I started using Angular2 (final version) and i'm having some problems with *ngFor. I've built the following component tree: main …

angular angular2-directives ngfor
How can I call function from directive after component's rendering?

How can I call function from directive after component's rendering? I have component: export class Component { ngAfterContentInit() { // How can i …

angular typescript angular2-directives angular2-components
Angular 2 multiple custom value accessor

I am creating an application using angular2. I need to get a Date from user input using a calendar popover, …

angular angular2-directives ng-bootstrap maskedinput
Angular 2 Input Directive Modifying Form Control Value

I have a simple Angular 2 directive that modifies the input value of a textbox. Note that i'm using the Model-Driven …

angular angular2-forms angular2-directives