Use for questions about Angular 2+ directives
I have a component whose template looks something like this: <div [my-custom-directive]>Some content here</div> …
angular angular2-directives angular-templatecan someone please advice me how to read/bind attribute value to @component class, which seems to be undefined in …
typescript angular angular2-template angular2-directivesI make a componenet in which I have one input field and button.On click of button I am diplaying …
angular angular2-routing angular2-template angular2-directivesI'm trying to set the routerLink value in a directive based on a dynamic set of items from the component. …
angular angular2-directivesHi all: I have a component. The component view has a table: <div class="container"> <h2>…
angular angular2-directivesI am using a template-driven approach to building forms in Angular 2 and I have successfully created custom validators that I …
typescript angular angular2-template angular2-directives angular2-formsGiven the following components: @Component({ selector: 'compA', template: template: `<compB [item]=item></compB>` }) export class CompA { …
angular typescript angular2-template angular2-directivesI have an ngFor creating rows in a table that is both filtered and paged. <tr *ngFor="#d of …
angular angular2-directivesI am new to Angular 2. I need to prevent special characters from being typed in the input field. If I …
html angular typescript angular2-directivesIn the given examples of Attribute directives (i.e. a directive to add appearance/behaviour), we have a fairly simple …
angular angular2-directives