I have a simple directive which repeats a section of transcluded content twice. Like this.  link: function (scope, element, attrs, controller, transclude) {      transclude(scope.$parent, function(clone) {         element.find('[transclude-main]&...
I have two directives in Angular. One has to be trascluded in the other. My problem is that I can't access the DOM with simple JQuery selector after the transclude function has run. In particular I want to compile the first directive (topic) and...
I'd like to transclude content as such that it acts as if I copy-pasted the content into the file where I write my <div data-ng-transclude="">. How do I do this?  I know I can use ng-include to include a template, and I can use scri...
Angular 1.5 enables the ability to multi transclude.   Notably, it'd be useful to be able to transclude a dynamic number of items into a directive and declare the names and locations of those transcludes at a later time (e.g. in the link/compile)...
I have an attribute directive which just adds a class name to the element on which it is applied. That attribute directive is applied to a table cell <td> element. When I have transclude: true in the directive definition it replaces the table c...
I Have a directive with transclude text I need to put it inside placeholder  My html   <div ng-controller="Controller">   <my-dialog>Hello world!</my-dialog>   </div>   JS  (function(angular) {   'use strict';...
I just took over the frontend work of our angularjs apps and I'm stuck.   I've been creating directives to replace bloated html to make updating the frontend look easier. All was going well till I hit the voting page of our elections app.  di...
I am using the ivh tree library for displaying hierarchichal data. https://github.com/iVantage/angular-ivh-treeview  I have a tree structure of approx ~2,000 nodes. and i get that data all at once. I need to do some performance optimization.  Is it p...
Why does this transcluded directive repeat Name inside directive = Frank twice?  I thought I understood transclusion but this has me confused.  Here's a fiddle  <div ng-app="myApp" ng-controller="myController">     <my-di...
I am trying to build a directive for a table to display data.  The table has a header and a body.  Ideally I would like to have the following directives:  <div my-table></div> <div my-table-header></div> <div my-table-body&...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.