@@ -183,14 +183,14 @@ export class AppViewManager {
183183 *
184184 * See {@link AppViewManager#destroyViewInContainer}.
185185 */
186- createEmbeddedViewInContainer ( viewContainerLocation : ElementRef , atIndex : number ,
186+ createEmbeddedViewInContainer ( viewContainerLocation : ElementRef , index : number ,
187187 templateRef : TemplateRef ) : ViewRef {
188188 var s = this . _createEmbeddedViewInContainerScope ( ) ;
189189 var protoView = internalProtoView ( templateRef . protoViewRef ) ;
190190 if ( protoView . type !== ViewType . EMBEDDED ) {
191191 throw new BaseException ( 'This method can only be called with embedded ProtoViews!' ) ;
192192 }
193- return wtfLeave ( s , this . _createViewInContainer ( viewContainerLocation , atIndex , protoView ,
193+ return wtfLeave ( s , this . _createViewInContainer ( viewContainerLocation , index , protoView ,
194194 templateRef . elementRef , null ) ) ;
195195 }
196196
@@ -201,7 +201,7 @@ export class AppViewManager {
201201 *
202202 * See {@link AppViewManager#destroyViewInContainer}.
203203 */
204- createHostViewInContainer ( viewContainerLocation : ElementRef , atIndex : number ,
204+ createHostViewInContainer ( viewContainerLocation : ElementRef , index : number ,
205205 protoViewRef : ProtoViewRef ,
206206 imperativelyCreatedInjector : ResolvedBinding [ ] ) : HostViewRef {
207207 var s = this . _createHostViewInContainerScope ( ) ;
@@ -210,15 +210,15 @@ export class AppViewManager {
210210 throw new BaseException ( 'This method can only be called with host ProtoViews!' ) ;
211211 }
212212 return wtfLeave (
213- s , this . _createViewInContainer ( viewContainerLocation , atIndex , protoView ,
213+ s , this . _createViewInContainer ( viewContainerLocation , index , protoView ,
214214 viewContainerLocation , imperativelyCreatedInjector ) ) ;
215215 }
216216
217217 /**
218218 *
219219 * See {@link AppViewManager#destroyViewInContainer}.
220220 */
221- _createViewInContainer ( viewContainerLocation : ElementRef , atIndex : number ,
221+ _createViewInContainer ( viewContainerLocation : ElementRef , index : number ,
222222 protoView : viewModule . AppProtoView , context : ElementRef ,
223223 imperativelyCreatedInjector : ResolvedBinding [ ] ) : ViewRef {
224224 var parentView = internalView ( viewContainerLocation . parentView ) ;
@@ -231,30 +231,30 @@ export class AppViewManager {
231231 ! embeddedFragmentView . hydrated ( ) ) {
232232 // Case 1: instantiate the first view of a template that has been merged into a parent
233233 view = embeddedFragmentView ;
234- this . _attachRenderView ( parentView , boundElementIndex , atIndex , view ) ;
234+ this . _attachRenderView ( parentView , boundElementIndex , index , view ) ;
235235 } else {
236236 // Case 2: instantiate another copy of the template or a host ProtoView.
237237 // This is a separate case
238238 // as we only inline one copy of the template into the parent view.
239239 view = this . _createPooledView ( protoView ) ;
240- this . _attachRenderView ( parentView , boundElementIndex , atIndex , view ) ;
240+ this . _attachRenderView ( parentView , boundElementIndex , index , view ) ;
241241 this . _renderer . hydrateView ( view . render ) ;
242242 }
243243 this . _utils . attachViewInContainer ( parentView , boundElementIndex , contextView ,
244- contextBoundElementIndex , atIndex , view ) ;
244+ contextBoundElementIndex , index , view ) ;
245245 this . _utils . hydrateViewInContainer ( parentView , boundElementIndex , contextView ,
246- contextBoundElementIndex , atIndex ,
246+ contextBoundElementIndex , index ,
247247 imperativelyCreatedInjector ) ;
248248 return view . ref ;
249249 }
250250
251- _attachRenderView ( parentView : viewModule . AppView , boundElementIndex : number , atIndex : number ,
251+ _attachRenderView ( parentView : viewModule . AppView , boundElementIndex : number , index : number ,
252252 view : viewModule . AppView ) {
253253 var elementRef = parentView . elementRefs [ boundElementIndex ] ;
254- if ( atIndex === 0 ) {
254+ if ( index === 0 ) {
255255 this . _renderer . attachFragmentAfterElement ( elementRef , view . renderFragment ) ;
256256 } else {
257- var prevView = parentView . viewContainers [ boundElementIndex ] . views [ atIndex - 1 ] ;
257+ var prevView = parentView . viewContainers [ boundElementIndex ] . views [ index - 1 ] ;
258258 this . _renderer . attachFragmentAfterFragment ( prevView . renderFragment , view . renderFragment ) ;
259259 }
260260 }
@@ -265,11 +265,11 @@ export class AppViewManager {
265265 *
266266 * See {@link AppViewManager#createViewInContainer}.
267267 */
268- destroyViewInContainer ( viewContainerLocation : ElementRef , atIndex : number ) {
268+ destroyViewInContainer ( viewContainerLocation : ElementRef , index : number ) {
269269 var s = this . _destroyViewInContainerScope ( ) ;
270270 var parentView = internalView ( viewContainerLocation . parentView ) ;
271271 var boundElementIndex = viewContainerLocation . boundElementIndex ;
272- this . _destroyViewInContainer ( parentView , boundElementIndex , atIndex ) ;
272+ this . _destroyViewInContainer ( parentView , boundElementIndex , index ) ;
273273 wtfLeave ( s ) ;
274274 }
275275
@@ -279,7 +279,7 @@ export class AppViewManager {
279279 *
280280 * See {@link AppViewManager#detachViewInContainer}.
281281 */
282- attachViewInContainer ( viewContainerLocation : ElementRef , atIndex : number ,
282+ attachViewInContainer ( viewContainerLocation : ElementRef , index : number ,
283283 viewRef : ViewRef ) : ViewRef {
284284 var s = this . _attachViewInContainerScope ( ) ;
285285 var view = internalView ( viewRef ) ;
@@ -291,8 +291,8 @@ export class AppViewManager {
291291 // previous parent injector (see https://github.com/angular/angular/issues/1377).
292292 // Right now we are destroying any special
293293 // context view that might have been used.
294- this . _utils . attachViewInContainer ( parentView , boundElementIndex , null , null , atIndex , view ) ;
295- this . _attachRenderView ( parentView , boundElementIndex , atIndex , view ) ;
294+ this . _utils . attachViewInContainer ( parentView , boundElementIndex , null , null , index , view ) ;
295+ this . _attachRenderView ( parentView , boundElementIndex , index , view ) ;
296296 return wtfLeave ( s , viewRef ) ;
297297 }
298298
@@ -302,13 +302,13 @@ export class AppViewManager {
302302 *
303303 * See {@link AppViewManager#attachViewInContainer}.
304304 */
305- detachViewInContainer ( viewContainerLocation : ElementRef , atIndex : number ) : ViewRef {
305+ detachViewInContainer ( viewContainerLocation : ElementRef , index : number ) : ViewRef {
306306 var s = this . _detachViewInContainerScope ( ) ;
307307 var parentView = internalView ( viewContainerLocation . parentView ) ;
308308 var boundElementIndex = viewContainerLocation . boundElementIndex ;
309309 var viewContainer = parentView . viewContainers [ boundElementIndex ] ;
310- var view = viewContainer . views [ atIndex ] ;
311- this . _utils . detachViewInContainer ( parentView , boundElementIndex , atIndex ) ;
310+ var view = viewContainer . views [ index ] ;
311+ this . _utils . detachViewInContainer ( parentView , boundElementIndex , index ) ;
312312 this . _renderer . detachFragment ( view . renderFragment ) ;
313313 return wtfLeave ( s , view . ref ) ;
314314 }
@@ -341,12 +341,12 @@ export class AppViewManager {
341341 }
342342
343343 _destroyViewInContainer ( parentView : viewModule . AppView , boundElementIndex : number ,
344- atIndex : number ) {
344+ index : number ) {
345345 var viewContainer = parentView . viewContainers [ boundElementIndex ] ;
346- var view = viewContainer . views [ atIndex ] ;
346+ var view = viewContainer . views [ index ] ;
347347
348348 this . _viewDehydrateRecurse ( view ) ;
349- this . _utils . detachViewInContainer ( parentView , boundElementIndex , atIndex ) ;
349+ this . _utils . detachViewInContainer ( parentView , boundElementIndex , index ) ;
350350 if ( view . viewOffset > 0 ) {
351351 // Case 1: a view that is part of another view.
352352 // Just detach the fragment
0 commit comments