Created
October 8, 2014 15:58
-
-
Save threewordphrase/28bce2b01c03b7c05e4a to your computer and use it in GitHub Desktop.
angular controller as within a modal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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