Top "Angular2-directives" questions

Use for questions about Angular 2+ directives

Pass parameter to Angular 4 directive on input

I have an input text field like this <input type="text" class="form-control" [inputTextFilter]="A" [ngModel]="name"> and …

angular angular2-directives
How to init a component only when its tag is at `*ngIf=true`?

Update: Günter Zöchbauer provided a very acceptable answer that works perfectly (and thank you!). But I still have …

angular angular2-template angular2-directives
Angular 2 Custom validation unit testing

i'm writing custom angular(Angular 2.0.0) validation, following this guide https://angular.io/docs/ts/latest/cookbook/form-validation.html#!#custom-validation . @Directive({ …

angular typescript angular2-directives angular2-forms angular2-testing
svg circle - Can't bind to cx since it isn't a known native property

I need to do a progress arc based on the calculated percentage, I have created a custom directive to access …

javascript angular typescript angular2-directives
how to do responsive components in Angular2

I'm wading my way into Angular2. My objective is to create a responsive app that loads different components in response …

angular responsive-design angular2-routing angular2-directives
How to use multiple ng-content in the same component in Angular 2?

I would like to display different template in my component. Only one will show. If hasURL is true, I want …

javascript angular angular2-template angular2-directives
How to restrict Special character in material input

I have a material input control, i have restrict the special character while user enter, but when type some words …

angular angular5 angular2-directives angular6 angular-directive
Can I access child elements within a directive in Angular2?

I'm trying to create a directive that accepts in input a icon property which would be the icon name. So …

angular angular2-directives
Edit and create with ng2-smart-table

I am trying to use <ng2-smart-table>. The issue is that I don't know how to bind the …

angular angular2-directives smart-table
Angular2 - ViewChild from a Directive

I have a component with this name EasyBoxComponent, and a directive with this viewchild @ViewChild(EasyBoxComponent) myComponent: EasyBoxComponent; this.myComponent …

angular angular2-directives