I have two directives that should both use isolate scopes,
You can do it with requiring one directive from another.
In this example you can require
outer-box to be a parent of
With this you have the access to required directive controller ( 4th parameter in
link function), so you can call a method to set class on element.
Working JSFiddle : https://jsfiddle.net/2atnxhgy/