Create a directive that runs your code in the link function.
The link function is called after the template is built.
See ng-click to get an idea.
Create a directive that runs your code in the link function.
The link function is called after the template is built.
See ng-click to get an idea.