Skip to content

Commit 1f56360

Browse files
committed
fix(uiView): correctly detect $animator service
1 parent 4b8282c commit 1f56360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/viewDirective.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function $ViewDirective( $state, $compile, $controller, $injector, $an
1414
var viewScope, viewLocals,
1515
name = attr[directive.name] || attr.name || '',
1616
onloadExp = attr.onload || '',
17-
animate = isDefined($animator) && $animator(scope, attr),
17+
animate = $animator && $animator(scope, attr),
1818
initialView = transclude(scope);
1919

2020
// Returns a set of DOM manipulation functions based on whether animation

0 commit comments

Comments
 (0)