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

option to give a template url instead text for the content #57

Open
bsssp opened this issue May 3, 2016 · 0 comments
Open

option to give a template url instead text for the content #57

bsssp opened this issue May 3, 2016 · 0 comments

Comments

@bsssp
Copy link

bsssp commented May 3, 2016

needed: jquery

cann you make a directive for it?

$http.get(templateUrl).then(function(response) {
    var template = angular.element(response.data);
    var linkFn = $compile(template);
    var templateElement = linkFn(scope);

    var elm = element.find("div[name=content]");
    elm.append(templateElement);
 });
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