angular-cn/tools
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
..
@angular/tsc-wrapped fix(ngc): work with typescript@next 2016-06-24 10:27:31 -07:00
analytics chore(): remove all angular2_material code. 2016-03-16 13:37:37 -07:00
broccoli cleanup(router): removes router 2016-06-20 08:47:54 -07:00
build chore(ngc): refactor out tsc-wrapped 2016-05-25 09:45:55 -07:00
cjs-jasmine feat(core): introduce `@AppModule` 2016-06-30 11:34:40 -07:00
code.angularjs.org chore(publish): add Rx bundles to code.angularjs.org publish step 2015-12-15 17:12:42 +00:00
karma fix(test-runner): make karma internal reporter compatible with 0.13.20 (#8977) 2016-06-03 10:48:55 -07:00
npm build(npm): short-circuit npm install if node_modules are healthy 2016-05-13 22:07:41 +02:00
public_api_guard feat(browser): use AppModules for bootstrap in the browser 2016-07-02 20:35:09 -07:00
travis build(travis): add travis log folding for verbose tasks 2015-10-03 21:33:57 +00:00
tree-shaking-test test: add tree-shaking test 2016-06-08 12:20:42 -07:00
tsc-watch feat(core): introduce `@AppModule` 2016-06-30 11:34:40 -07:00
tslint chore(lint): Add lint check for license headers 2016-06-23 09:46:32 -07:00
typings-test fix(typings): don't test compiler-cli typings on TS 1.8 2016-06-23 10:57:03 -07:00
check-environment.js chore(lint): re-enable clang-format on tools/ 2016-05-26 15:46:03 -07:00
chromedriverpatch.js chore(testing): update protractor to version 2.1.0 2015-05-20 17:28:23 -07:00
jsconfig.json chore(vscode): add jsconfig.json and remove .settings dir 2015-10-29 13:53:21 +00:00
tsconfig.json test: upgrade ts-api-guardian to v0.1.2 2016-06-23 14:26:40 -07:00
types.d.ts build: remove dependency on tsd and use @types/* instead 2016-05-25 16:42:28 -07:00
utils.inc feat(bundle): add script to push bundles to code.angularjs.org 2015-04-14 14:50:53 -07:00