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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -