Indentation + semicolon fix

This commit is contained in:
Ates Goral
2015-03-31 20:34:04 -04:00
parent 66e1757033
commit 199bdb9246
+2 -2
View File
@@ -24,14 +24,14 @@ app.controller('ThemeController', ['$scope', '$stateParams', '$state',
}; };
$scope.$on('$stateChangeSuccess', function() { $scope.$on('$stateChangeSuccess', function() {
$scope.slug = $stateParams.slug; $scope.slug = $stateParams.slug;
}); });
$scope.$watch('slug', function(slug) { $scope.$watch('slug', function(slug) {
if (!slug) { if (!slug) {
return; return;
} }
$scope.colors = colors[$scope.slug] $scope.colors = colors[$scope.slug];
$state.go('theme', { slug: slug }); $state.go('theme', { slug: slug });
}); });