Skip to content

Instantly share code, notes, and snippets.

$scope.detachLocationChangeListener = $scope.$on('$locationChangeStart', function (event, next, current) {
event.preventDefault(); //prevent the navigation
$scope.showSaveChangesDialog = true; //dialog control
$scope.nextRoute = $location.url(next).hash(); //grab requested location
});
$scope.confirmSaveChanges = function (answer) {
if (answer == true) {
alert("clicked yes, save changes");
}
@richmwatts
richmwatts / gist:8abc66b455750462dff4
Last active August 29, 2015 14:08
brew config & doctor output
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: 2f84b834f37ccead3baaf8e707afbe5dcd498b77
Last commit: 52 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.10-x86_64
Xcode: 6.1
CLT: 6.1.0.0.1.1413057044