Questions tagged as 'angular2-directives'

1
answer

How to Extend / Inherit Angular Component2?

Doubt I would like to create extensions for some components already implemented in Angular 2, without having to rewrite them almost completely, because the base component could undergo changes and I would like these changes to be reflected...
asked by 06.04.2016 / 20:26
1
answer

How to manipulate DIV with angle 2

I have 2 DIVs and would like to manipulate them with buttons. I have 2 DIVs. When one appears the other is hidden, vice versa. Can someone help me ? my version of Angular is 5.    Function1    Function2                 content -2     
asked by 24.09.2018 / 23:00
1
answer

Click outside Angular 6

I updated my Angle from 4 to 6, and consequently I had a problem with my click outside policy, it stopped working on all the components. My policy: import { Directive, Output, EventEmitter, ElementRef, HostListener } from '@angular/core';...
asked by 25.05.2018 / 14:36
0
answers

angular 2 - Problem when calling directive

Good afternoon guys ... angular I would like help from you if possible. I'm having trouble using a policy. We created a directive in a directive directory, (app > directive) but within my form I can not use it. We have 2 directories...
asked by 05.02.2018 / 21:04
1
answer

Whenever I use directives of this error SyntaxError: Unexpected token

car-master.component.tsimport{Component}from'@angular/core';import{Car}from'./car';import{CarDetailComponent}from'./car-detail.Component';@Component({selector:'my-car',templateUrl:'app/view/car-master.html',directives:[CarDetailComponent]})expo...
asked by 02.07.2016 / 20:10