GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • NgModuleFactory

This view

  • Original page
  • New address

GeezerVison is showing next.angular.dev — Compiler • Angular

Deprecation warning

Ivy JIT mode doesn't require accessing this symbol.

API

    
      class Compiler {}
    
    

Compiles the given NgModule and all of its components. All templates of the components have to be inlined.

@parammoduleTypeType<T>
@returnsNgModuleFactory<T>

Compiles the given NgModule and all of its components

@parammoduleTypeType<T>
@returnsPromise<NgModuleFactory<T>>

Clears all caches.

@returnsvoid

Clears the cache for the given component/ngModule.

@paramtypeType<any>
@returnsvoid

Returns the id for a given NgModule, if one is defined and known to the compiler.

@parammoduleTypeType<any>
@returnsstring | undefined

Description

Low-level service for running the angular compiler during runtime to create NgModuleFactory instances, which can later be used to create and render a Component instance.

Each @NgModule provides an own Compiler to its injector, that will use the directives/pipes of the ng module for compilation of components.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.