JanStevens / angular-growl-2

growl-like notifications for angularJS projects
MIT License
285 stars 97 forks source link

How can I put to text $compile value? #106

Open eugenekurilov opened 8 years ago

eugenekurilov commented 8 years ago

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?