TypeScript Dart JavaScript HTML Shell CSS Other
Switch branches/tags
Latest commit 3f55aa6 Jun 30, 2016 @tbosch tbosch 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.
Failed to load latest commit information.
.github chore(.github): improve github issue and PR templates Jun 16, 2016
modules feat(browser): use AppModules for bootstrap in the browser Jul 2, 2016
modules_dart Revert "feat(change_detection): make INTERPOLATE_REGEXP customizable (#… Jun 1, 2016
scripts chore: enable cyclic dependency check Jun 30, 2016
tools feat(browser): use AppModules for bootstrap in the browser Jul 3, 2016
.bowerrc chore(dgeni): clean up legacy typings bundle creation Oct 29, 2015
.clang-format feat(tooling): Add a .clang-format for automated JavaScript formatting. Apr 2, 2015
.editorconfig chore(.editorconfig): include markdown config Jan 27, 2015
.gitattributes build: fix some issues on Windows platforms Jun 23, 2016
.gitignore chore(tsc-wrapped): update to newest tsickle Jun 9, 2016
.nvmrc build(node): upgrade to node 5.4.1 Jan 22, 2016
.travis.yml chore(build): activate optional jobs in SL and BS (#8605) Jun 9, 2016
CHANGELOG.md doc(changelog): cleans up markdown for breaking changes (#9739) Jun 30, 2016
COMMITTER.md chore(docs): update the merge process docs Dec 23, 2015
CONTRIBUTING.md removes tailing slashes from url in lines 229 231 May 26, 2016
DEVELOPER.md chore(docs): Fixed pre-commit command for clang-format Jun 13, 2016
LICENSE Update change from Apache to MIT license Jan 8, 2016
NAMING.md refactor(ngProbe): rename to ng.probe Aug 31, 2015
README.md chore(readme): add CircleCI status badge May 27, 2016
TOOLS.md feat(docs): document change detection profiler Sep 4, 2015
TOOLS_DART.md fix(docs): fix an import in TOOLS_DART.md Dec 17, 2015
TOOLS_JS.md doc: fix `enableDebugTools` import path (#9377) Jun 20, 2016
TRIAGE_AND_LABELS.md chore(docs): explain the process for merging changes to master Aug 11, 2015
bower.json fix(benchmarks): update react and polymer benchmarks and get tree upd… Oct 28, 2015
browser-providers.conf.js chore(build): reenable optional jobs in SL and BS May 11, 2016
build.sh build: fix some issues on Windows platforms Jun 23, 2016
circle.yml chore(lint): re-enable clang-format on tools/ May 26, 2016
gulpfile.js chore: enable cyclic dependency check Jun 30, 2016
gulpfile.js.old build: use connect web server instead of SimpleHTTPServer May 25, 2016
karma-js.conf.js chore(karma): remove ref to legacy files (#9008) Jun 4, 2016
npm-shrinkwrap.clean.json build(npm): upgrade ts-api-guardian to v0.1.4 Jun 27, 2016
npm-shrinkwrap.json build(npm): upgrade ts-api-guardian to v0.1.4 Jun 27, 2016
npm-shrinkwrap.readme.md build(npm): add tools/npm/reshrinkwrap script and update docs Jan 22, 2016
package.json docs(changelog): change log and package.json to rc4 Jun 30, 2016
perf-cloud-secret.template.js refactor(build): support multiple configurable browsers for e2e and p… Jan 20, 2015
presubmit.sh refactor(compiler): rename /compiler_cli to /compiler-cli Jun 2, 2016
protractor-dart2js.conf.js chore: rename modules/examples to modules/playground Oct 18, 2015
protractor-ddc.conf.js chore(ddc): add e2e test infra + first test Mar 22, 2016
protractor-js-dev.conf.js chore(test): setup a gulp task for quickly running e2e tests against … Jun 11, 2015
protractor-js-new-world.conf.js build: use connect web server instead of SimpleHTTPServer May 25, 2016
protractor-js-prod.conf.js chore(build): add a task to watch and render examples and e2e tests f… Jun 19, 2015
protractor-js.conf.js build: adding basic e2e testing infrastructure May 2, 2016
protractor-shared.js refactor(chore): Replace all 'bindings' with 'providers' May 23, 2016
publish-packages.sh cleanup(router): removes router Jun 20, 2016
pubspec.yaml chore(test): migrate Dart tests to package:test Mar 4, 2016
shims_for_IE.js fix(IE): make shim work with instrumented code May 19, 2016
test-main.js cleanup(router): removes router Jun 20, 2016
test.sh chore: have test.sh take platform argument Jun 14, 2016
tslint.json chore(lint): Add lint check for license headers Jun 23, 2016

README.md

Build Status CircleCI Join the chat at https://gitter.im/angular/angular Issue Stats Issue Stats npm version Downloads

Sauce Test Status

Angular

Angular is a development platform for building mobile and desktop web applications. This is the repository for Angular 2, both the JavaScript (JS) and Dart versions.

Angular 2 is currently in Release Candidate.

Quickstart

Get started in 5 minutes.

Want to help?

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.