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 writing a library for the community, which needs access to the form control and listens on the value changed. …
angular angular-directive angular-providers angular-validationProblem I have a simple directive that executes sizing updates on a particular element. This watches the window size and …
javascript angularjs angular-directiveI'm using angular4 and trying to create a router link. The router link works but displays the template twice. Below …
angular angular-directiveI have a directive which has a mouse wheel event, it is used to zoom in and out a canvas. …
javascript angular angular-directiveI've put together a currency attribute directive on a ReactiveForm FormControl that uses @HostListener on an input event (onKeyDown) to …
angular angular-directiveSince Angular v1.4, it's possible to do this: scope: {}, bindToController: { name: "=" } instead of old way of doing: scope: { name: "=" }, bindToController: …
javascript angularjs angular-directiveLet's say I have the following code <div ng-app="app" ng-controller="controller"> <div ng-repeat="instance in instances&…
javascript angularjs angularjs-scope angular-directiveI would like to add validators dynamically to my FormControl via a custom Directive. @Directive({ selector: "[idNumber]", }) export class IdNumberDirective …
angular typescript angular-directiveHow can we activate class if object exists. i have a json array where i need to activate a class …
angularjs ng-class angular-directiveangular.module('mod1', []) .directive('myDir', ($timeout) => { return { ///.... } }); angular.module('myApp', ['mod1']) <html ng-app="myApp"> <…
angularjs angular-directive angular-module