
p.location-badge.
  exported from <a href='../core'>angular2/core</a>
  defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.37/modules/angular2/src/core/compiler/compiler.ts#L71-L361">angular2/src/core/compiler/compiler.ts (line 71)</a>

:markdown
  ## URL Resolution
  
  ```
  var appRootUrl: AppRootUrl = ...;
  var componentUrlMapper: ComponentUrlMapper = ...;
  var urlResolver: UrlResolver = ...;
  
  var componentType: Type = ...;
  var componentAnnotation: ComponentAnnotation = ...;
  var viewAnnotation: ViewAnnotation = ...;
  
  // Resolving a URL
  
  var url = viewAnnotation.templateUrl;
  var componentUrl = componentUrlMapper.getUrl(componentType);
  var componentResolvedUrl = urlResolver.resolve(appRootUrl.value, componentUrl);
  var templateResolvedUrl = urlResolver.resolve(componetResolvedUrl, url);
  ```
  
  

.l-main-section
  h2 Annotations
  .l-sub-section
    h3.annotation Injectable
    pre.prettyprint
      code.
        @Injectable()


.l-main-section
  h2 Members
  .l-sub-section
    h3#compileInHost compileInHost

    
    pre.prettyprint
      code.
        compileInHost(componentTypeOrBinding: Type | Binding)
    
    :markdown




