Hi,
> 1. Do you mean "nested controllers"? Like <div > ng-controller="menuCtrlr"><div ng-controller="viewCtrlr"></div</div> > > Yes, that is what I mean. > 1. I've found your answer regarding $formatter ( > > https://groups.google.com/forum/#!searchin/angular/Sander%7Csort:date/angular/ikEnKkoAUF8/qt21aRgu8iAJ) > > but could not make the connection to my case with that. Is this the one? > :) > > Yes this is the example. have a look at this: app.directive('myDirective', function ($compile, $timeout) { return { restrict: 'A', priority: 2000, terminal: true, replace: false, compile: function(element, attrs) { // do the directive modification stuff here //one time compilation in compile function // this will only run on first time use. var compiled = $compile(element,null,2000); return function(scope, element, attrs, ctrl){ //in the link function, use the previously created compile function to // hook up the scope to the precompiled template compiled(scope); } } }; }); does that help? Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
