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

AngularJs Transclude with ng-repeat and multi transclude

I want to user directive inside ng-repeat of other directive with transclusion. I am able to user multitransclude outside of ng-repeat, however I want to be inside of directives ng-repeat region. Here is my code. Note: I…
Anil wagh
  • 273
  • 1
  • 14
0
votes
1 answer

creating a component that accept and iterate over a custom element

My goal is to create a component that can take a custom element and iterate over it using provided data. Here is what i have been able to come up with, and it works fine. But i'm not satisfied. I want something that does not require wrapping the…
Isaiahiroko
  • 994
  • 7
  • 12
0
votes
1 answer

Why transclusion scope is not sibling with directive scope?

This is my code:
Unknown developer
  • 5,414
  • 13
  • 52
  • 100
0
votes
1 answer

Call a method of a component which is inside of within its parent component

First of all here is the Plunkr Essentially, I have a tab control that is dynamic. There will be any number of tabs, each of which will contain a component that inherits from this 'Delay-load' component. The functionality I wish to achieve is that…
wh-dev
  • 537
  • 5
  • 18
0
votes
1 answer

ng-content rendered custom form controls

I am developing a multi-page form (kind of like a wizard) that will include one or more pages of controls, and those controls will be custom controls. Here is a picture of what I'm trying to develop: This is (as of now) a template-driven form, and…
John Dibling
  • 99,718
  • 31
  • 186
  • 324
0
votes
2 answers

How can I render compiled Transcluded HTML in Angular?

I am trying to render html that represents a custom directive using angular so that I nest divs an arbitrary number of times. When I run the below code I do see the tag properly transcluded and the browser in my output shows literally the string…
0
votes
0 answers

Is there a way to alias scope variable for a html node?

I Have a directive myDirective which has a template and transcended html (transclude: true) myDirective template has a repeater ng-repeat="item in transformSourceData"and transcluded template uses item to render page, now my question is how to use…
0
votes
0 answers

Reloading Nested Angular directives from database

I have a super specific issue with an app I'm building. Angular Code: $scope.step1 = function () { console.log("step1"); var columnDirective = ''; var container =…
0
votes
1 answer

Nested directives with transclusion

I have a set of form directives in which duplicate code can be extracted into a separate directive. I know that I can use transclusion, but have not been able to identify any technique that allows this (element cloning or passing functions).…
0
votes
1 answer

Page built using the Transclusion syntax are not properly refreshed

I'm using mediawiki 1.26.3 as knowledge repository with standard configuration and installed the Visual Editor Extension Some pages of my wiki are builded dynamically merging the contents of others pages using the Transclusion…
Tiziano
  • 271
  • 1
  • 5
  • 9
0
votes
2 answers

Why must I set "trasnclude: true" in an Angular DDO?

I know what transclude: true does, but I've always wondered: "why must I put transclude: true in my DDO as well as a ng-transclude in my template?". What's going on internally that forces angular to be redundant? Is it security/XSS protection?…
Rick
  • 8,366
  • 8
  • 47
  • 76
0
votes
1 answer

Angular Transclusion

See this plnkr https://plnkr.co/edit/theggRtJlbFj1H4zVUKU?p=preview using the $compile service, I need to have dirC nested inside dirB. The output should be DirB DirC I thought this was bug since dirC directive and controller was never fired, so…
user714157
  • 399
  • 2
  • 4
  • 18
0
votes
0 answers

Nesting directives, both with template url

I have 2 directives within a module. Within one of them, is a templateUrl property. Within that templateUrl, I've made a reference to the other directive, which in turn has a templateUrl. e.g.