Go to file
Tobias Bosch c68fa27444 refactor(render): remove recursion from renderer
The goal is to make implementing a renderer straight forward.

BREAKING_CHANGE:

- Renderer interface was redone / simplified.
- `DirectDomRenderer` was replaced by `DomRenderer`.
- `DirectDomRenderer.setImperativeComponentRootNodes` is replaced
  by the following 2 steps:
    1. `ViewManager.getComponentView(elementRef) -> ViewRef`
    2. `DomRenderer.setComponentViewRootNodes(viewRef, rootNodes)`
- all `@View` annotations need to have a template, but the template
  may be empty. Previously views that had a `renderer` property did
  not have to have a `template`.
- `dynamicComponentLoader.loadIntoNewLocation` does no more allow
  to pass an element, but requires a css selector.
  Special syntax: `:document` can be used as prefix to search globally
  on the document instead of in the provided parent view.

Part of #1675
2015-05-08 09:37:41 -07:00
docs fix(docs): fix broken docs test after addition of .ts extension to dgeni 2015-05-07 14:05:57 -07:00
modules refactor(render): remove recursion from renderer 2015-05-08 09:37:41 -07:00
modules_dart feat(dart/analysis): Build DirectiveMetadata for LibrarySpecificUnit 2015-05-06 11:00:44 -07:00
scripts chore(material): add simple e2e smoke tests for components. 2015-05-07 15:13:30 -07:00
tools build(typescript): Migrated change detection to typescript 2015-05-07 17:18:04 -07:00
.bowerrc BUG FIX: without specification, certain versions of bower install ./app/bower_components... 2015-04-21 16:31:20 -07:00
.clang-format feat(tooling): Add a .clang-format for automated JavaScript formatting. 2015-04-02 08:44:34 -07:00
.editorconfig chore(.editorconfig): include markdown config 2015-01-27 00:14:48 -08:00
.gitattributes chore: add .gitattributes with new lines config 2015-01-06 18:06:13 -08:00
.gitignore chore(build): add tsd.cached.json to our .gitignore 2015-04-27 10:47:49 -07:00
.travis.yml chore(travis): pin npm used to v2.7.4 2015-04-16 16:58:28 -07:00
CHANGELOG.md chore(release): releases alpha.22 2015-05-07 16:04:06 -07:00
CONTRIBUTING.md chore(contributing): add contributing instructions 2015-03-11 08:06:09 +01:00
DEVELOPER.md chore(build): remove karma preprocessors 2015-05-06 14:06:40 -07:00
LICENSE Initial commit 2014-09-18 09:12:01 -07:00
README.md docs(README): update for linguistic consistency 2015-04-28 19:06:02 +02:00
bower.json feat(benchmarks): add polymer js 0.8-preview benchmark 2015-03-13 20:48:03 -07:00
gulpfile.js build(gulp): use gulp-watch instead of gulp.watch for watching files 2015-05-07 22:27:36 -07:00
karma-dart.conf.js chore(build): make karma watch broccoli output for dart unit tests 2015-05-05 19:24:20 -07:00
karma-js.conf.js chore(build): Remove .es6 files which shadow .ts files. 2015-05-01 09:51:03 -07:00
npm-shrinkwrap.clean.json chore(npm): bump angular version in the shrinkwrap after today's release 2015-05-07 22:27:36 -07:00
npm-shrinkwrap.json chore(npm): bump angular version in the shrinkwrap after today's release 2015-05-07 22:27:36 -07:00
npm-shrinkwrap.readme.md docs(npm-shrinkwrap.readme.md): update instructions 2015-04-27 10:47:50 -07:00
package.json build(gulp): use gulp-watch instead of gulp.watch for watching files 2015-05-07 22:27:36 -07:00
perf-cloud-secret.template.js refactor(build): support multiple configurable browsers for e2e and perf tests 2015-01-20 13:06:37 -08:00
protractor-dart2js.conf.js feat(benchmark): added an implementation of the tree benchmark in React 2015-04-30 18:12:21 -07:00
protractor-js.conf.js fix(build): simplify the e2e/perf config via command line arguments 2015-02-17 11:08:04 -08:00
protractor-shared.js fix(build): don’t read out chrome perflogs during e2e tests 2015-04-01 17:09:26 -07:00
pubspec.yaml chore: update pubspec files 2015-05-06 17:55:03 -07:00
test-init.dart refactor(render): use render layer fully 2015-04-08 20:51:31 -07:00
test-main.dart refactor(render): use render layer fully 2015-04-08 20:51:31 -07:00
test-main.js chore(build): Remove .es6 files which shadow .ts files. 2015-05-01 09:51:03 -07:00
tsconfig.json chore(build): Add a tsconfig.json file, simply to allow Atom editor's Typescript plugin to 2015-04-28 23:39:39 +00:00

README.md

Angular Build Status Join the chat at https://gitter.im/angular/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 Alpha Preview. We recommend using Angular 1.X for production applications:

Setup & Install Angular 2

Follow the instructions given on the Angular download page.

Want to help?

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing.

Examples

To see the examples, first build the project as described here.

Hello World Example

This example consists of three basic pieces - a component, a decorator, and a service. They are all constructed via injection. For more information see the comments in the source modules/examples/src/hello_world/index.js.

You can build this example as either a JS or a Dart app:

  • JS:
    • $(npm bin)/gulp build.js.dev, and
    • $(npm bin)/gulp serve.js.dev, and
    • open localhost:8000/examples/src/hello_world/ in Chrome.
  • Dart:
    • $(npm bin)/gulp serve/examples.dart, and
    • open localhost:8080/src/hello_world in Chrome (for dart2js) or Dartium (for Dart VM).