directive Questions

2

I want to integrate angular progress directive in my application. I found progress bar directive that solve the purpose but I'm not able to change the color of progress bar. I want to give custom ...
Herries asked 10/6, 2015 at 19:44

1

Solved

I need to apply some configuration for a Location Directive. These configurations must be applied for all location, except some URIs (e.g. I don't wanna change configs for /products, so bellow con...
Goneness asked 10/5, 2016 at 7:28

9

Solved

Recently I started refactoring one of the Angular projects I am working on with TypeScript. Using TypeScript classes to define controllers is very convenient and works well with minified JavaScript...
Cragsman asked 13/11, 2014 at 22:59

6

Solved

I have a directive myDirective with variable type. If I run <my-directive type="X"> I want the directive to use templateUrl: x-template.html. If I do <my-directive type="Y"> I want the...
Heterocyclic asked 10/5, 2013 at 20:33

1

The ECMAScript specification defines the Use Strict Directive, but permits implementations to define their own directives. From here: Implementations may define implementation specific mea...
Frasquito asked 28/3, 2016 at 17:40

1

Solved

I have following directive (TextElementDirective), that has 4 input variables colorHex, fontFamily, fontWeight, fontStyle. I want to set an element's color and style using this directive. @Direc...
Crimmer asked 14/3, 2016 at 16:33

1

I have a angular element on the page which needs to communicate with the rest of the non angular page elements. I am creating directive elements on the fly, and appending it to its target div. I am...
Glochidium asked 24/2, 2016 at 19:35

3

Im trying to alter the almighty autocomplete to accept an array of objects instead of just an array of strings. But sadly, I am at a standstill. Here I want an array to contain objects instead of ...
Perplexity asked 18/8, 2014 at 20:3

1

Solved

I have such directive: ... template: function(element, attrs) { var htmlTemplate = '<div class="start-it" ng-if="isVisible">\ <p ng-bind-html="\'{{customDynamicText}}\' | translate">...
Proteiform asked 11/2, 2016 at 12:9

1

Solved

In my textbook, its given that the ASSUME directive tells the assembler the names of the logical segments to use as the physical segments. And that it uses displacements from the start of the speci...
Nova asked 7/2, 2016 at 8:40

2

I've created a custom directive which contains a button. This button calls a method from parent scope specified by 'callback' attribute. <!DOCTYPE html> <html ng-app="app"> <head&gt...
Charger asked 21/2, 2014 at 12:56

1

Solved

I've been struggling to understand what is the difference between these two concepts in the framework. I'm well familiar with what directives in AngularJS 1.x are and both components and dir...
Freefloating asked 25/11, 2015 at 6:55

2

Solved

I have a (simplified) directive angular.module('myApp') .directive('myButton', function () { return { restrict: 'E', scope: { callbackFn: '&' }, template: '<button ng-click=ca;;backF...
Grewitz asked 21/10, 2015 at 12:22

2

Solved

I'm trying to make a directive that I can do a virtual scroll, so as the user scrolls the table, the table remove "old" views and add "new" views, kind like of collection repeat but I've been faili...
Lexicologist asked 21/10, 2015 at 12:23

4

Solved

Having problems creating nested directive using Typescript. I can do it in simple AngularJs: http://plnkr.co/edit/UruTqEdMnqNT5wjxcQNC?p=preview , but using TypeScript it gives me "No controller"...
Maag asked 30/7, 2013 at 10:23

1

Solved

Excuse the poor wording, but I couldn't find a better way to explain it. From my understanding, C# is a WORA language- you can write it on one machine and deploy it on another, because the MSIL is...
Diagenesis asked 23/9, 2015 at 18:6

2

Solved

I found this Angular Directive online to add a twitter share button. It all seems staright forward but I can't work out what the attrs.$observe is actually doing. I have looked in the docs but can...
Unhealthy asked 21/2, 2014 at 9:5

5

Solved

I'm trying to get an evaluated attribute from my custom directive, but I can't find the right way of doing it. I've created this jsFiddle to elaborate. <div ng-controller="MyCtrl"> <inp...
Lambert asked 11/9, 2012 at 13:44

4

Solved

I am currently trying to create a custom directive that would initialize an input with the following lib : intl-tel-input. So I downloaded the required .js file with Bower: <script src="bow...
Dwight asked 15/7, 2014 at 8:53

3

I have a textarea within an angular ui modal, and need to set focus to it when the modal is made visible, can not be in the document load because it works only the first time open the modal. The m...
Amplifier asked 5/2, 2015 at 15:53

4

Solved

My site will have multiple sections, each of which I intend to be resizable. To accomplish this I've made a "resizable" directive, e.g.: <div class="workspace" resize="full" ng-style="resizeSty...
Exclamatory asked 21/8, 2013 at 22:4

2

Solved

I am trying to get getter/setter support for ng-model by implementing a directive that will take care of getting and setting the values to/from the view/model. I am almost there, but I end up in in...
Photocomposition asked 22/1, 2014 at 17:17

2

Solved

I have an object data in the MainCtrl. This object is used to pass data to directives first-directive and second-directive. Two-data binding is neccesary in both cases. For first-directive, I pass...
Tetherball asked 10/5, 2015 at 16:58

6

Solved

Here's the situation. I have a directive, that depends on a templateUrl. The directive looks something like this: angular.module('foo') .directive('bar', function(){ return { restrict: 'E', re...
Oca asked 4/6, 2014 at 19:1

1

Solved

I have an issue writing angular directives in typescript. I want to write my directives using typescript classes. Everything works fine except the controller function. class myDirective implements...
Kayseri asked 16/4, 2015 at 6:42

© 2022 - 2024 — McMap. All rights reserved.