Questions tagged [directive]

A concept of 'command' used by many programming languages and frameworks. Use this tag with a language and/or framework to indicate context. The C/C++ pre-processor is one language that relies heavily on directives. They call it "pragmas".

2065 questions
0
votes
1 answer

Angular v1 Component to Component data transfer

I'm struggling with a problem within Angular v1.6.1 where I am trying to transfer some data from a component to another component. I have a component called navbar which resides in app\common\navbar has a controller that fetches data from a…
rand0m
  • 842
  • 10
  • 24
0
votes
0 answers

nginx server block not playing nicely - 'server not found'

The basic installation is working, on linux mint OS. resolving the domain on 'localhost' confirms that nginx is running. however, the issue i am running into stems from the generation of my own server block. its very basic: server { listen…
Catresl
  • 195
  • 2
  • 15
0
votes
3 answers

AngularJS Passing a Function in ng-repeat

Hello I am building an app using Firebase and AngularJS. I have two parents, one containing every monster in the game, and another containing every monster the user has. I need a repeater that blanks out the users monsters, and displays everything…
0
votes
0 answers

How to reload directive from controller or is there need here directive

I have three links and three controllers for each three link. But, same HTML page need to show. Just need to process (in controller) and reload that page on each click of that link. If I create directive to separate logic into directive JS/html…
dsi
  • 3,199
  • 12
  • 59
  • 102
0
votes
1 answer

nginx: root chosen based on path

I want the following. http://some.site/person1/some/path should access /home/person1/some/path (and http://some.site/person1 accesses /home/person1/index.html) and http://some.site/person2/some/path should access /home/person2/some/path (and…
fuzzybear3965
  • 243
  • 5
  • 15
0
votes
1 answer

Directive scope is not getting destroyed

I am using directive which is using ng-file-upload for uploading files. This directive is included in modal window called from main controller. I am calling $rootScope.$broadcast event from main controller and listening for that event in directive.…
Micko
  • 431
  • 8
  • 27
0
votes
1 answer

What do these rewrite rules, added by malware, mean in .htaccess

My site was recently attacked w/ Malware infection. Among the few php files that were added, my .htaccess was also modified. Normally it just says index options but the attacker changed it to say the following: RewriteEngine on RewriteRule…
Albert Renshaw
  • 17,282
  • 18
  • 107
  • 195
0
votes
1 answer

Directive not applied when using the "attr" host attribute

Based on this host attribute post, I've created this Plunker. After reading the github issue, my understanding is that we should be able to use [attr.someDirective] to conditionally apply a directive attribute to an element. It does appear to…
Kizmar
  • 2,465
  • 3
  • 20
  • 27
0
votes
2 answers

angularJS scrolling not recognized in ng-view

Does anyone know why this basic scroll directive doesn't work when I scroll in a template within ng-view? I know this is super vague but I can't find anything on the web. I have tried multiple variations of a scroll directive but none of them…
Brandon
  • 45
  • 8
0
votes
2 answers

Is there an online manual of C++ preprocessor directives?

Is there a place where I can learn what all the different preprocessor directives in the C++ standard libraries do? Like a site where it would break down all the different things you could do with math.h, conio.h, etc.?
Skyler
  • 410
  • 4
  • 18
0
votes
1 answer

Unable to set directive input value

I have narrowed down the problem I'm having to this directive code: @Directive({ selector: '[tdStepTracker]' }) export class StepTrackerDirective { @Input('tdStepTracker') keyName: string; ngOnInit() { console.log('keyName',…
kolrie
  • 12,562
  • 14
  • 64
  • 98
0
votes
1 answer

Error when calling a method within service from a directive in Coffeescript

I have a service called DashboardLayoutStyleCalculatorService with the following methods. Other methods removed because they're not really relevant to the question: styleFns = table: @computeStyleForTable single_value:…
theGreenCabbage
  • 5,197
  • 19
  • 79
  • 169
0
votes
1 answer

got undefined in controller while use ng-click on directive template

I did not manage to get the event in parent controller. Tried lot of solutions but always get undefined Also if I call to that function in link function and from there call to the controller it is not working (but print the object correct in the…
Scopi
  • 663
  • 1
  • 6
  • 21
0
votes
1 answer

Create dynamic directive in AngularJS

I want that when I click an element within a directive call other directive with the detail of this element. Actually when I click in an element the directive is called, but not display the information because the object I want to display in…
michaelitoh
  • 2,317
  • 14
  • 26
0
votes
0 answers

Not able to use a two-binding in Directive in angularJS

I am using a controller like this app.controller('EmployeeCrtl', ['$http', '$scope', function($http, $scope) { $http.get('/Data/EmployeeDetails.json').success(function(data) { $scope.EmployeeData = data; }).error(function() { …
Lijin Durairaj
  • 653
  • 1
  • 6
  • 9