Hi Sidharth, 

If a template gets compiled it attaches itself to the current DOM, and 
hooks up certain $scope things. If you try to cache it, this breaks those 
relationships. There is a price to pay if you want to use $compile. This is 
part of it. If you try to cure slowness in a part of your application, its 
way easier by getting rid of $complie, and optimise that part, as it is to 
solve this puzzle.

Regads
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to