604c8bbad5
BREAKING CHANGE: Previously, components that would implement lifecycle interfaces would include methods like "onChanges" or "afterViewInit." Given that components were at risk of using such names without realizing that Angular would call the methods at different points of the component lifecycle. This change adds an "ng" prefix to all lifecycle hook methods, far reducing the risk of an accidental name collision. To fix, just rename these methods: * onInit * onDestroy * doCheck * onChanges * afterContentInit * afterContentChecked * afterViewInit * afterViewChecked * _Router Hooks_ * onActivate * onReuse * onDeactivate * canReuse * canDeactivate To: * ngOnInit, * ngOnDestroy, * ngDoCheck, * ngOnChanges, * ngAfterContentInit, * ngAfterContentChecked, * ngAfterViewInit, * ngAfterViewChecked * _Router Hooks_ * routerOnActivate * routerOnReuse * routerOnDeactivate * routerCanReuse * routerCanDeactivate The names of lifecycle interfaces and enums have not changed, though interfaces have been updated to reflect the new method names. Closes #5036 |
||
---|---|---|
modules | ||
modules_dart | ||
scripts | ||
tools | ||
typing_spec | ||
.bowerrc | ||
.clang-format | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.nvmrc | ||
.travis.yml | ||
CHANGELOG.md | ||
COMMITTER.md | ||
CONTRIBUTING.md | ||
DEVELOPER.md | ||
LICENSE | ||
NAMING.md | ||
README.md | ||
TOOLS.md | ||
TOOLS_DART.md | ||
TOOLS_JS.md | ||
TRIAGE_AND_LABELS.md | ||
bower.json | ||
browser-providers.conf.js | ||
gulpfile.js | ||
karma-dart-evalcache.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-dev.conf.js | ||
protractor-js-prod.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 Developer Preview. We recommend using Angular 1.X for production applications:
Quickstart
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 and then check out one of our issues in the hotlist: community-help.