Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eugenekurilov opened this issue Oct 27, 2015 · 0 comments
Open

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

eugenekurilov opened this issue Oct 27, 2015 · 0 comments

Comments

@eugenekurilov
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant