[AngularJS] Re: When inside a transclusion, using replaceWith in a directive compile function doesn't work.

2014-08-21 Thread Michael Krzenski
This issue still persists in Angular 1.2.22 so opened another issue for it here: https://github.com/angular/angular.js/issues/8710 On Thursday, September 13, 2012 3:55:54 PM UTC-4, passelin wrote: I'm using AngularJS 1.1.0 and I'm trying to modify the template structure of a directive to

[AngularJS] Re: Should one be able to dynamically add an attribute directive in a directive's compile function?

2014-08-20 Thread Michael Krzenski
That's exactly what I needed to know! Thanks so much taking the time to layout a code example and even explain it. Very much appreciated! Mike On Wednesday, August 20, 2014 1:07:04 AM UTC-4, Sander Elias wrote: Hi Michael, yes, you can do that, but if you need the stuff you add/manipulate

[AngularJS] Should one be able to dynamically add an attribute directive in a directive's compile function?

2014-08-19 Thread Michael Krzenski
http://plnkr.co/edit/4fCKhlVZr93A3g1lUzMc?p=info or... code below... app.directive('amazingDomManipulator', [ function() { return { restrict: 'A', compile: function(element, attrs) { //element.attrs('ng-model', attrs.testModel)