I am new in angular 1.5 now I have a problem. How I get current component element reference in controller function like angular 1.3 link : function(scope, elem, attr) function. elem denote to directive element.
Angular 1.3
templateUrl : "template_url",
link : function(scope, elem, attr){
elem.find(".chips-item").append("<h1>Angular 1.3</h1>");
}
Angular 1.5
templateUrl : "template_url",
controller: function() {
elem.find(".chips-item").append("<h1>Angular 1.3</h1>"); /// How I get current Element
}