c68fa27444
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 |
||
---|---|---|
docs | ||
modules | ||
modules_dart | ||
scripts | ||
tools | ||
.bowerrc | ||
.clang-format | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
DEVELOPER.md | ||
LICENSE | ||
README.md | ||
bower.json | ||
gulpfile.js | ||
karma-dart.conf.js | ||
karma-js.conf.js | ||
npm-shrinkwrap.clean.json | ||
npm-shrinkwrap.json | ||
npm-shrinkwrap.readme.md | ||
package.json | ||
perf-cloud-secret.template.js | ||
protractor-dart2js.conf.js | ||
protractor-js.conf.js | ||
protractor-shared.js | ||
pubspec.yaml | ||
test-init.dart | ||
test-main.dart | ||
test-main.js | ||
tsconfig.json |
README.md
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).