
p.location-badge.
  exported from <a href="/angular2/core.html">angular2/core</a>
  defined in <a href="https://github.com/angular/angular/tree/master/modules/angular2/src/core/compiler/view_container_ref.js#L11">angular2/src/core/compiler/view_container_ref.js (line 11)</a>

:markdown
  
.l-main-section
  h2 Members
  .l-sub-section
    h3 constructor

    
    pre.prettyprint
      code.
        constructor(viewManager: avmModule.AppViewManager, element: ElementRef)
    
    :markdown
      




  .l-sub-section
    h3 clear

    
    pre.prettyprint
      code.
        clear()
    
    :markdown

      





  .l-sub-section
    h3 create

    
    pre.prettyprint
      code.
        create(protoViewRef:ProtoViewRef = null, atIndex:number=-1, injector:Injector = null)
    
    :markdown

      





  .l-sub-section
    h3 detach

    
    pre.prettyprint
      code.
        detach(atIndex:number=-1)
    
    :markdown

      The method can be used together with insert to implement a view move, i.e.
      moving the dom nodes while the directives in the view stay intact.





  .l-sub-section
    h3 get

    
    pre.prettyprint
      code.
        get(index: number)
    
    :markdown

      





  .l-sub-section
    h3 indexOf

    
    pre.prettyprint
      code.
        indexOf(viewRef:ViewRef)
    
    :markdown

      





  .l-sub-section
    h3 insert

    
    pre.prettyprint
      code.
        insert(viewRef:ViewRef, atIndex:number=-1)
    
    :markdown

      





  .l-sub-section
    h3 length

    
    :markdown

      





  .l-sub-section
    h3 remove

    
    pre.prettyprint
      code.
        remove(atIndex:number=-1)
    
    :markdown

      




