Questions tagged [transclusion]

transclusion (verb: transclude) is a feature in multiple platforms allowing embedding of content from other sources.

Resources:

207 questions
0
votes
1 answer

Transclude does not interpolate

I have a directive that transcludes some HTML to provide a faux context menu. The usage is as such:
0
votes
0 answers

How to Access HTML Inside of Angular Directive (Transclusion)

I am using angular-ui. I am trying to reduce html coding my making reusable elements with angular directives. I'm definitely missing something. What I want to do is this: Modal…
0
votes
1 answer

Inject a unique DOM element in at a specific position in a ng-repeat using Angular

I have a complex grid like directive that is bound to a long list model object. For one of my apps, I have a list in which I need to inject the directive in the row that is selected. The code is something like
0
votes
0 answers

AngularJS - Transclusion Containing Transclusion?

I am using Bootstrap UI's accordion directive. This uses transclusion under the hood. I have some logic that needs repeated, so I am trying to create a directive that wraps the accordian, which also uses transclusion.
Travis Parks
  • 8,435
  • 12
  • 52
  • 85
0
votes
1 answer

AngularJS - Updating variables within the parent controller scope from a function in a transcluded directive scope

How are parent controller scope variables updated from within a transcluded directive scope's function? I am embedding directives into another directive using a transclusion in the following manner:
Ian CT
  • 1,301
  • 2
  • 12
  • 22
0
votes
1 answer

AngularJS : ng-repeat in Directive ng-transclude

Hi I am new to AngularJS so forgive me if this is a simple problem. I have a simple directive that looks something like this: app.directive('myDirective', function() { return { restrict: 'E', transclude: true, replace:…
0
votes
0 answers

AngularJS : directive not working when inside another directive

i can't make the input updates the model when it is inside the list-select-option directive. but, when i use the directive cefenRadio directly on the view it's capable of update the model, as i want probably the problem is on the transfer of the…
0
votes
0 answers

How do I add a transclusion to an existing Angular attribute directive?

I've gone through similar questions and I guess I'm still not understanding how this is supposed to work. I have the following directive that I want to modify to allow transclusion: app.directive('ccWidgetHeader', function() { var directive = { …
Paul Mrozowski
  • 6,604
  • 9
  • 34
  • 47
0
votes
0 answers

Orgmode Radio tables, pandoc,and docx

Pandoc's (version 1.13.1) docx converter apparently requires that there be a blank line before the table start and after the table end. With radio tables, this requires a blank line after the BEGIN RECEIVE cookie and a blank line before END RECEIVE.…
Robert McDonald
  • 1,250
  • 1
  • 12
  • 20
0
votes
1 answer

How to transclude anything

I am transcluding an SVG element into another SVG directive. Here is the template for the parent directive called "component":
Joe Beuckman
  • 2,264
  • 2
  • 24
  • 63
0
votes
1 answer

Angular transcluded directive with two-way binding to controller not updating

I am using this https://github.com/blackgate/bg-splitter for creating horizontal and vertical pane splitters. (The full code is in the plunkr I have created) Since I started using it, I have an issue with the two-way binding of a controller and…
Daan van Hulst
  • 1,426
  • 15
  • 32
0
votes
0 answers

AngularJS : Maintaining access to the model in element transclusion

Plunker: Direct Edit example. In the above plunker, I have a directive (direct-edit) which uses transclude: 'element', to surround the element with other markup. The directive requires: 'ngModel', to connect the additional markup to the model.…
0
votes
1 answer

Angular transcluded directive binds only for the first time

I am developing a simple inplace edit directive. My goal is to use the directive content (form) as a template, and change the input fields to labels. When the form is clicked, the directive should replace it to the original editor content. I created…
Daniel Leiszen
  • 1,827
  • 20
  • 39
0
votes
1 answer

AngularJS handling different types of DOM manipulation

I currently have 2 directives: An editor directive that creates a textbox and a toolbar div. A bold button which is transcluded into the editor Markup B Editor…
Greg
  • 31,180
  • 18
  • 65
  • 85
0
votes
1 answer

AngularJS : Change the element associated with directive using transclude

How can I change the element associated with a call to transclude()? In my app, I dynamically load an entire SVG file from the server and display it. I need to add behaviors to the loaded content. Currently, I have something like this:
Sean Clark Hess
  • 15,859
  • 12
  • 52
  • 100
1 2 3
13
14