From 63c962f07a92e895150364cb88d7e5cc8064b596 Mon Sep 17 00:00:00 2001 From: preterer Date: Tue, 3 Oct 2017 12:20:42 +0200 Subject: [PATCH] Allow to add spinner without bar Add spinner after the $after element when bar is not included --- src/loading-bar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loading-bar.js b/src/loading-bar.js index 44e092a..20afd85 100644 --- a/src/loading-bar.js +++ b/src/loading-bar.js @@ -222,7 +222,7 @@ angular.module('cfp.loadingBar', []) } if (includeSpinner) { - $animate.enter(spinner, $parent, loadingBarContainer); + $animate.enter(spinner, $parent, includeBar ? loadingBarContainer : $after); } _set(startSize);