Open eugenekurilov opened 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?
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 );
}
});
The parameter "Title" are waiting only html content but I need use $compile. How Can I do it?