JanStevens/angular-growl-2

How can I put to text $compile value?

eugenekurilov opened this issue · 0 comments

I have a next code/

contentsApp.controller("contentsCtrl", function($scope, growl, $http, $compile){

$scope.clickHandler = function(e) {
var cnt = 'some generating code with directive Element';
var el = $compile( cnt )( $scope );

$scope.showInfo('', cnt);

}

$scope.showInfo = function(title, text){
    growl.info(text,{title: title, disableIcons: true});
}

});

The parameter "Title" are waiting only html content but I need use $compile. How Can I do it?