Skip to content

Instantly share code, notes, and snippets.

@g00fy-
Created September 26, 2014 13:50
Show Gist options
  • Save g00fy-/1ec2c2769420e4e80738 to your computer and use it in GitHub Desktop.
Save g00fy-/1ec2c2769420e4e80738 to your computer and use it in GitHub Desktop.
Perf - compile
if(directive.templateUrl){
var tmplUrl = (isFunction(directive.templateUrl))
? directive.templateUrl($compileNode, templateAttrs)
: directive.templateUrl
var template = $templateCache.get(tmplUrl);
if(template){
directive = extend({},{templateUrl:null,template:template})
}
}
@g00fy-
Copy link
Author

g00fy- commented Sep 26, 2014

paste before
if (directive.template) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment