javascript - Angular.js directive template using variable from parent/inherited scope -
i want chose directives templateurl depending on variable parent scope. can't use templateurl function, since doesn't have scope yet. can $compile template $templatecache(note it's there, i'm not loading it) inside linking function, afraid it's gonna have negative impact on performance(let table cell directive.. , there's quite few cells).
do have other, better option?
there indeed no other way around. although should $compile
way achieve satisfactory performance results. https://stackoverflow.com/a/22646392/301596
Comments
Post a Comment