Use for questions about Angular 2+ directives
How to dynamically add (inject) a directive into host? I have a myTooltip directive and I would like to add …
angular typescript angular2-directivesI upgraded my Angular from 4 to 6, and consequently had a problem with my click-off policy, it stopped working on all …
angular angular2-directives angular6I realize, this question is repeated but previous once does not provide apt answer moment package was already installed 1.Installed …
node.js angular angular2-directives angular-momentHow can I access the "content" of a component from within the component class itself? I would like to do …
javascript typescript angular angular2-directivesI have an Angular 1.x directive that appends an element. In short: app.directive('mydirective', function() { template: '<ng-transclude&…
angular angular2-directivesI recently built the following Angular 2 Read More component. What this component does is collapse and expand long blocks of …
angular typescript angular2-template angular2-directivesProblem: I would like to be able to unit test a directive in Angular 2 to make sure that it properly …
javascript angularjs unit-testing angular angular2-directivesI'm confused a little. See this simple directive: @Directive({ selector: '[myDirective]' }) export class MyDirective { private text: string; private …
angular typescript angular2-directivesI am getting this exception when trying to use nested components: EXCEPTION: Error: Uncaught (in promise): TypeError: Cannot set property …
angular angular2-template angular2-directivesI have used a custom directive to detect click outside an element in angular 2 but the same is not possible …
angular angular2-directives angular-directive angular-observable