Skip to content

Instantly share code, notes, and snippets.

@threewordphrase
Created October 8, 2014 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save threewordphrase/28bce2b01c03b7c05e4a to your computer and use it in GitHub Desktop.
Save threewordphrase/28bce2b01c03b7c05e4a to your computer and use it in GitHub Desktop.
angular controller as within a modal
shooter.createSitemapModal = function () {
var cloneModalInstanceCtrl = $modal.open({
templateUrl: path + 'sitemaps/templates/_modal_create_sitemap.html',
controller: 'CreateSitemapController as createSitemap'
});
cloneModalInstanceCtrl.result.then(function (sitemap) {
shooter.createSitemap(sitemap);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment