I have created my custom directive for rating in angularJS. I want to run javascript after loading of html template. So how can i do that?
my code:
app.directive('ratingControl',function(){
return {
restrict:'EA',
templateUrl:'rating.htm',
link :function(scope,element,attr) {}
};
});