Skip to content

Instantly share code, notes, and snippets.

@jrowny
Forked from augustl/popoup.js
Last active December 10, 2015 14:18
Show Gist options
  • Select an option

  • Save jrowny/4446380 to your computer and use it in GitHub Desktop.

Select an option

Save jrowny/4446380 to your computer and use it in GitHub Desktop.
$scope.addTab = function () {
var popupTemplateUrl = "/angular/templates/new-tab.html";
var popupTemplate = angular.element('<div ng-include="\'' + popupTemplateUrl + '\'></div>');
var popupElement = $compile(popupTemplate)($scope);
console.log(popupElement.get(0));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment