Any way to inject styling into an AngularJS template in a contributed directive -


i using contributed directive contains template. i'd modify template use function set styles on specific elements in directive template via ng-style (i.e. conditionally set background color based upon value within said directive).

now, can modify template contain ng-style directives overriding template in $templatecache. however, given directive has own isolate scope, don't know function call can define without modify directive definition.

is there way either a) inject function directive can use in overridden ng-style-containing template or b) write ng-style directives in such way can access containing (or global) $scope?


Comments

Popular posts from this blog

c# - ItextSharp font color issue in ver 5.5.4+ -

jquery - Multiple issues with pushstate: history, loading, calling functions -

ios - retrievePeripherals deprecated in IOS7 how to substitude it with retrievePeripheralsWithIdentifiers -