Indentation + semicolon fix
This commit is contained in:
1 parent
66e1757033
commit
199bdb9246
1 file changed
+2
-2
@@ -24,14 +24,14 @@ app.controller('ThemeController', ['$scope', '$stateParams', '$state',
|
||||
};
|
||||
|
||||
$scope.$on('$stateChangeSuccess', function() {
|
||||
$scope.slug = $stateParams.slug;
|
||||
$scope.slug = $stateParams.slug;
|
||||
});
|
||||
|
||||
$scope.$watch('slug', function(slug) {
|
||||
if (!slug) {
|
||||
return;
|
||||
}
|
||||
$scope.colors = colors[$scope.slug]
|
||||
$scope.colors = colors[$scope.slug];
|
||||
$state.go('theme', { slug: slug });
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user