Created
October 8, 2014 13:08
-
-
Save threewordphrase/e68acb3c64073bd71a75 to your computer and use it in GitHub Desktop.
ui-router magic
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.createSitemap = function (postableData) { | |
SitemapService.create({sid: siteId}, postableData, function (data) { | |
$state.go('site.viewSitemap', {sid: siteId, sitemapId: data.data.id}); | |
}, function (data) { //failure | |
//error handling goes here | |
Noty(data.data.message, 'error'); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment