I\'ve create a directive that generates Twitter buttons. Since the scope variables on those buttons may change, I need to rebuild the button when it happens. Currently, I\'m
Another way to achieve this is to make use of ng-if.
For example:
The directive will not be created until your renderdirective is not true. This will also work the other way round if you wish to remove the directive and let it be recreated using the new attribute values.