b1df54501a
Closes #2529 BREAKING CHANGES: - shadow dom emulation no longer supports the `<content>` tag. Use the new `<ng-content>` instead (works with all shadow dom strategies). - removed `DomRenderer.setViewRootNodes` and `AppViewManager.getComponentView` -> use `DomRenderer.getNativeElementSync(elementRef)` and change shadow dom directly - the `Renderer` interface has changed: * `createView` now also has to support sub views * the notion of a container has been removed. Instead, the renderer has to implement methods to attach views next to elements or other views. * a RenderView now contains multiple RenderFragments. Fragments are used to move DOM nodes around. Internal changes / design changes: - Introduce notion of view fragments on render side - DomProtoViews and DomViews on render side are merged, AppProtoViews are not merged, AppViews are partially merged (they share arrays with the other merged AppViews but we keep individual AppView instances for now). - DomProtoViews always have a `<template>` element as root * needed for storing subviews * we have less chunks of DOM to clone now - remove fake ElementBinder / Bound element for root text bindings and model them explicitly. This removes a lot of special cases we had! - AppView shares data with nested component views - some methods in AppViewManager (create, hydrate, dehydrate) are iterative now * now possible as we have all child AppViews / ElementRefs already in an array! |
||
---|---|---|
.. | ||
docs | ||
src | ||
test | ||
README.dart.md | ||
README.js.md | ||
angular2.ts | ||
angular2_sfx.dart | ||
angular2_sfx.ts | ||
annotations.ts | ||
change_detection.ts | ||
core.ts | ||
debug.ts | ||
di.ts | ||
di_errors.ts | ||
di_metadata.ts | ||
di_transformer.dart | ||
directives.ts | ||
forms.ts | ||
globals.d.ts | ||
http.ts | ||
mock.ts | ||
package.json | ||
pipes.ts | ||
pubspec.yaml | ||
render.ts | ||
router.ts | ||
test.ts | ||
test_lib.ts | ||
traceur-runtime.d.ts | ||
transformer.dart | ||
tsconfig.json | ||
tsd.json | ||
view.ts |
README.js.md
Angular2
The sources for this package are in the main Angular2 repo. Please file issues and pull requests against that repo. This is the repository for the upcoming 2.0 version. If you're looking for the current official version of Angular you should go to angular/angular.js
This package contains different sources for different users:
- The files located in the root folder can be consumed using CommonJS.
- The files under
/es6
are es6 compatible files that can be transpiled to es5 using any transpiler. This contains:dev/
: a development version that includes runtime type assertionsprod/
: a production version that does not include runtime type assertions
- The files under
/ts
are the TypeScript source files.
As a convenience, we provide you with /es6/{dev|prod}/es5build.js
, a script to transpile the es6 sources into es5
using Google Traceur.
License: Apache MIT 2.0