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

Transclude share scope with directive template

Assume this directive: Some errors: {{errors}} I thought I could create the directive function simple as this: return { require: '^form', restrict: 'E', link:…
Markus Hedlund
  • 23,374
  • 22
  • 80
  • 109
0
votes
0 answers

Customized ng-repeat attr directive with transcluding elements

OK, I swear I've searched all over SO for answers to this. Each answer I'm finding is almost, but not quite, exactly not what I'm looking for. Goal I'm trying to write some directives that let me DRY up the way I display collections. Final goal is…
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
2 answers

Use ng-model with a primitive value inside ng-transclude

In a legacy project, I want to create a new directive that uses transclude. A trimmed down version of the directive code is: app.directive('controlWrap', function() { return { restrict: 'E', transclude: true, scope: {…
Fernando
  • 2,131
  • 3
  • 27
  • 46
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
2 answers

How to pass a function to transcluded scope from a controller (angular 1.3)?

I created a simple reusable collection container as a directive with an isolated scope an a transclude option is set to true. app.directive('itemWrapper', function() { return { template: '...', replace: true, transclude: true, …
0
votes
2 answers

using ng-bind to define transcluded content on a directive that uses transclusion

Consider some-directive with the following definition object: { restrict: "E", transclude: true, template: "
content:
" } I can use it this way: {{someContent}} and not…
0
votes
1 answer

When does transclusion take place in the compilation/linking process of a directive's setup?

I'm writing a custom directive that uses transclusion. I need to make modifications to the transcluded DOM content AFTER the transclusion has taken place....would I want to do that in the post-link or in the controller or ... the link...? I don't…
temporary_user_name
  • 35,956
  • 47
  • 141
  • 220
0
votes
1 answer

AngularJS : ngRepeat scope fails in custom directive with isolated scope and ngTransclude

I made a custom directive ("wizard") based on the JQuery Steps plugin. But im facing problems when using ngRepeat inside my directive. The diretive uses ngTransclude so i can provide the steps content inside the page markup. Im nowhere near an…
0
votes
1 answer

ngModel needs $parent when within Transcluded html

I have a directive for a input field that uses transclusion to take the elements that are enclosed in the directives element which includes an ng-model attribute. After reading countless SO questions and Angular documentation to find out how to get…
0
votes
1 answer

Dynamically adding Angular ui-select to page

I am attempting to add dom element to the page after returning from an ajax request. The dom element contains ui-select directives, and I am getting this error: Error: error:orphan Orphan ngTransclude Directive I am adding the content to the page…
Csizzle
  • 215
  • 3
  • 10
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

Analyze transcluded content

I have the directive, which transcludes an arbitrary content, which should contain some children, that may be created with ngRepeat. Within link or transcludeFn I have access to a template for children, not a finished DOM. Given that, how can I…
0
votes
1 answer

angularjs transclude and ng-repeat: doing it right

I have the following code that produces not the expected result:
1
content
2
content
3
content
0
votes
3 answers

AngularJS - directive with ng-transclude, no two-way binding

See that DEMO {{ obj }} Why when I change the obj scope variable in the custom directive with ng-transclude I don't change it in the…
Dilyan Dimitrov
  • 789
  • 1
  • 7
  • 24
1 2 3
13
14