Questions tagged [angularjs-ng-transclude]

Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.

From Angularjs documentation:

Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.

208 questions
0
votes
1 answer

click event in angular on transcluded children

I'm trying to fire a click event on a transcluded child element in my directive. It isn't working. I seem to have lost access to parent scope for some reason. app.controller('myController', [ '$scope', '$log', '$q', function ($scope,…
chovy
  • 72,281
  • 52
  • 227
  • 295
0
votes
1 answer

Transclude on ng-repeat

im trying to repeat a directive inside the directive so i can have a template on each of directive but the problem is i can only show the first entry when using ng-transclude Here is what i've done so far
0
votes
0 answers

Angularjs: How to access local scope in transclude when using a recursive directive

Background: I am trying to setup a tree view from a JSON schema - I do this using directive schema-tree as I setup in this code. Within the view I am trying to transclude DOM elements so that this treeview can be reused. However, since there is a…
0
votes
1 answer

Ng-transclude with nested directives

I am working with 2 directives where one directives template contains the second directive. I would like to use ng-transclude inside the second (nested) directive. How can I accomplish this? Here is a plnkr.
gwin003
  • 7,432
  • 5
  • 38
  • 59
0
votes
1 answer

Controller $scope property does not change with expression in transcluded content

The problem is that when you have transcluded content which contains an expression as an attribute of ng-click for example, the change does not occur in the scope of the parent controller as you can see in this fiddle:…
sq1020
  • 1,000
  • 2
  • 9
  • 15
0
votes
2 answers

AngularJS directive with ngTransclude not showing {{bound}} content

I'm attempting to create an Angular directive that creates a standardised structure of a table that I wish to use around my application. I want to specify the structure of the tr when I declare the directive in HTML so that I can have different…
Tom
  • 2,321
  • 2
  • 18
  • 29
0
votes
1 answer

AngularJs - transclude break the ng-controller

I have deep understanding with angular, and I can't understanding what I do wrong. I have a directive surrounded by ng-controller. KApp.directive("testdirective", function ($compile) { return { restrict: 'E', …
0
votes
2 answers

AngularJS and JQuery UI Tabs

I've seen some samples of tabs with AngularJS, and very few about JQueryUI tabs with AngularJS, so I tried to create two directives to create the tabs container, and the tab items. Here is the sample code I've created:…
0
votes
1 answer

Angular Transclude - ng-repeat doesn't repeat

Been playing round with Angular directives and came to an issue which I've stumbled upon... Following is the code: Directive test