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

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -