Skip to content

Commit 0de59be

Browse files
Merge branch 'master' of https://github.com/takeshi/ui-router into takeshi-master
2 parents 2b70b67 + e94aaff commit 0de59be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/viewDirective.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,12 @@ function $ViewDirective( $state, $injector, $uiViewScroll) {
202202
}
203203

204204
function updateView(firstTime) {
205-
var newScope = scope.$new(),
205+
var newScope,
206206
name = getUiViewName(attrs, $element.inheritedData('$uiView')),
207207
previousLocals = name && $state.$current && $state.$current.locals[name];
208208

209209
if (!firstTime && previousLocals === latestLocals) return; // nothing to do
210+
newScope = scope.$new();
210211
latestLocals = $state.$current.locals[name];
211212

212213
var clone = $transclude(newScope, function(clone) {

0 commit comments

Comments
 (0)