angular-cn/tools/public_api_guard
Tobias Bosch 3f55aa609f feat(browser): use AppModules for bootstrap in the browser
This introduces the `BrowserModule` to be used for long form
bootstrap and offline compile bootstrap:

```
@AppModule({
  modules: [BrowserModule],
  precompile: [MainComponent],
  providers: […], // additional providers
  directives: […], // additional platform directives
  pipes: […] // additional platform pipes
})
class MyModule {
  constructor(appRef: ApplicationRef) {
    appRef.bootstrap(MainComponent);
  }
}

// offline compile
import {bootstrapModuleFactory} from ‘@angular/platform-browser’;
bootstrapModuleFactory(MyModuleNgFactory);

// runtime compile long form
import {bootstrapModule} from ‘@angular/platform-browser-dynamic’;
bootstrapModule(MyModule);
```

The short form, `bootstrap(...)`, can now creates a module on the fly,
given `directives`, `pipes, `providers`, `precompile` and `modules`
properties.

Related changes:
- make `SanitizationService`, `SecurityContext` public in `@angular/core` so that the offline compiler can resolve the token
- move `AnimationDriver` to `platform-browser` and make it
  public so that the offline compiler can resolve the token

BREAKING CHANGES:
- short form bootstrap does no longer allow
  to inject compiler internals (i.e. everything 
  from `@angular/compiler). Inject `Compiler` instead.
  To provide custom providers for the compiler,
  create a custom compiler via `browserCompiler({providers: [...]})`
  and pass that into the `bootstrap` method.
2016-07-02 20:35:09 -07:00
..
common fix: public api surface fixes + stability markers 2016-06-28 07:39:40 -07:00
compiler feat(compiler): support sync runtime compile 2016-06-28 10:26:16 -07:00
core feat(browser): use AppModules for bootstrap in the browser 2016-07-02 20:35:09 -07:00
forms fix(forms): mark control containers as touched when child controls are touched (#9735) 2016-07-01 15:36:04 -07:00
http fix(http): don't encode values that are allowed in query (#9651) 2016-06-28 11:31:35 -07:00
platform-browser feat(browser): use AppModules for bootstrap in the browser 2016-07-02 20:35:09 -07:00
platform-browser-dynamic feat(browser): use AppModules for bootstrap in the browser 2016-07-02 20:35:09 -07:00
platform-server fix: public api surface fixes + stability markers 2016-06-28 07:39:40 -07:00
router fix(router): handle router outlets in ngIf 2016-06-30 22:14:42 -07:00
upgrade fix: public api surface fixes + stability markers 2016-06-28 07:39:40 -07:00