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.
I want to create Angular 2 directive that will tirm spaces only from begining and the end of the text that …
angular angular-directive angular2-ngmodelWhen I add in this line of code into my @Component: directives: [HeroDetailComponent] The code breaks, and gives me this …
angular angular-directiveSay I have the following markup: <my-comp myDirective></my-comp> Is there any way I can access …
angular angular-directivei'm trying to build a structural directive that will change the parent DOM structure either invoked by using its selector (…
angular angular-directive angular-componentsI have a component with click. <my-box (click)="openModal()"></my-box> When I click this element, openModal …
angular rxjs angular-directiveI have a directive called iframely and I it inside an ng-repeat like this: <iframely url="iterator.url">&…
angularjs angular-directiveUsing a custom directive how would you add/remove a class on the host element based on a specific conditions? …
angular angular2-directives angular-directiveI'm looking to update an Angular 1 app to Angular 2 and am having an issue with one of my old directives. …
javascript jquery angular angular-directivein the new project I'm working on I've started using the components instead of directives. however, I've encountered an issue …
javascript angularjs angular-directive angular-componentsAccording to the docs (specifically, the table comparing directives to components), angular components allow requiring other directives (or is it …
javascript angularjs angular-directive