Top "Angular-directive" questions

At a high level, directives are markers on a DOM element (such as an attribute, element name, comment or CSS class) that tells the Angular 2+ framework to attach a specified behavior to that DOM element or even transform the DOM element and its children.

is there any alternative for ng-disabled in angular2?

I am using angular2 for development and was wondering if there is any alternative for ng-disabled in angular2. For ex. …

angular angular-directive
How to extend / inherit components?

I would like to create extensions for some components already deployed in Angular 2, without having to rewrite them almost completely, …

angular typescript inheritance angular-directive
Get Value From Select Option in Angular 4

How do I get the value from the select option in Angular 4? I want to assign it to a new …

angular angular-directive angular4-forms
How to get element's width/height within directives and component?

Hey,I want to get element's width/height within MoveDirective and DonationComponent,I read the document several times but still …

angular angular-directive angular-components
How to apply multiple template bindings on one element in angular

I'm using template like following: <ul [ngClass]="{dispN: !shwFilter,'list-group':true,'autoS':true,'dispB':shwFilter,'myshddw':true}" style=";display: …

angular angular-directive angular-template
Attribute property binding for background-image url in Angular 2

I have been struggling to figure out the best way to dynamically change the background-image attribute in a number of …

css angular typescript angular-directive
What is the difference between component and directive?

I have just started working with Angular 2. I was wondering what are the differences between components and directives in Angular 2?

angular components angular-directive angular2-directives
Detect when input value changed in directive

I'm trying to detect when the value of an input changed in a directive. I have the following directive: import { …

angular angular-directive angular2-directives
What is an AngularJS directive?

I have spent quite a lot of time reading through AngularJS documentation and several tutorials, and I have been quite …

javascript angularjs angular-directive
Angular 1.5 component vs. old directive - where is a link function?

I've been reading this nice recent article about new .component() helper in Angular 1.5, which is supposed to help everyone to …

javascript angularjs angularjs-directive angular-directive