Go to file
Brian Ford 5205a9e65f refactor(angular_1_router): use directives for route targets
BREAKING CHANGE:

Previously, route configuration took a controller constructor function as the value of
`component` in a route definition:

```
$route.config([
  { route: '/', component: MyController }
])
```

Based on the name of the controller, we used to use a componentMapper service to
determine what template to pair with each controller, how to bind the instance to
the $scope.

To make the 1.x router more semantically alligned with Angular 2, we now route to a directive.
Thus a route configuration takes a normalized directive name:

```
$route.config([
  { route: '/', component: 'myDirective' }
])
```

BREAKING CHANGE:

In order to avoid name collisions, lifecycle hooks are now prefixed with `$`. Before:

```
MyController.prototype.onActivate = ...
```

After:

```
MyController.prototype.$onActivate = ...
```

Same for `$canActivate` (which now lives on the directive factory function),
`$canDeactivate`, `$canReuse`, and `$onDeactivate` hooks.
2015-09-21 12:13:07 -07:00
.settings tools: updated the VS Code config 2015-07-07 08:17:58 -07:00
docs docs(typings): don't emit @private members during the d.ts generation 2015-09-18 22:56:57 +00:00
modules refactor(angular_1_router): use directives for route targets 2015-09-21 12:13:07 -07:00
modules_dart feat(dart/transform): Declare transformer outputs 2015-09-17 16:00:03 -07:00
scripts chore(tools): remove rtts from the repo. 2015-09-10 21:10:36 +00:00
tools fix(browser): make Firefox to work with es6-shim 2015-09-18 09:39:41 +02:00
typing_spec fix(typings): emit spread parameters 2015-08-27 21:55:10 +00: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 tools: add .vscode to .gitignore 2015-09-10 22:26:55 +00:00
.nvmrc chore(build): record the version of node we expect. 2015-06-29 16:30:55 -07:00
.travis.yml chore(build): fail experimental Dart build but allow Travis failures 2015-08-27 13:52:47 -07:00
CHANGELOG.md Add ES5 examples - before and after 2015-09-11 19:41:21 +00:00
COMMITTER.md chore(docs): explain the process for merging changes to master 2015-08-11 21:28:46 +00:00
CONTRIBUTING.md docs(CONTRIBUTING): sync with the change of angular/angular.js#12032 2015-08-04 19:54:31 +00:00
DEVELOPER.md chore(DEVELOPER.md): add details for configuring Dart on Windows 2015-09-11 15:37:40 -07:00
LICENSE Initial commit 2014-09-18 09:12:01 -07:00
NAMING.md refactor(ngProbe): rename to ng.probe 2015-08-31 21:32:10 +00:00
README.md docs: Fix broken link to download angular page 2015-09-11 15:37:35 -07:00
TOOLS.md feat(docs): document change detection profiler 2015-09-04 16:38:53 -07:00
TOOLS_DART.md feat(docs): document change detection profiler 2015-09-04 16:38:53 -07:00
TOOLS_JS.md feat(docs): document change detection profiler 2015-09-04 16:38:53 -07:00
TRIAGE_AND_LABELS.md chore(docs): explain the process for merging changes to master 2015-08-11 21:28:46 +00:00
bower.json build(bower): remove moot `version` property from bower.json 2015-06-09 08:53:49 -07:00
gulpfile.js fix(dist): don't distribute the HTML dart api docs 2015-09-17 15:49:53 +00:00
karma-dart-evalcache.js fix(test): make `evalModule` faster by caching spawned modules in the browser 2015-09-12 01:16:06 +00:00
karma-dart.conf.js fix(test): make `evalModule` faster by caching spawned modules in the browser 2015-09-12 01:16:06 +00:00
karma-js.conf.js fix(browser): make Firefox to work with es6-shim 2015-09-18 09:39:41 +02:00
npm-shrinkwrap.clean.json refactor(async): replace RxJS with RxNext 2015-09-15 23:44:57 +00:00
npm-shrinkwrap.json refactor(async): replace RxJS with RxNext 2015-09-15 23:44:57 +00:00
npm-shrinkwrap.readme.md chore: reformat npm-shrinkwrap.readme.md for normal line length 2015-08-22 14:20:33 -07:00
package.json refactor(async): replace RxJS with RxNext 2015-09-15 23:44:57 +00: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 Revert "chore(benchmarks): disable broken benchmarks" 2015-08-21 05:59:53 +00:00
protractor-js-dev.conf.js chore(test): setup a gulp task for quickly running e2e tests against the dev server 2015-06-11 16:58:32 -07:00
protractor-js-prod.conf.js chore(build): add a task to watch and render examples and e2e tests for production 2015-06-19 18:57:41 -04:00
protractor-js.conf.js Revert "chore(benchmarks): disable broken benchmarks" 2015-08-21 05:59:53 +00:00
protractor-shared.js fix(benchpress): make benchpress fit for chrome 45 2015-09-05 01:01:13 +00:00
pubspec.yaml feat(perf): change detection profiler 2015-09-09 01:12:58 +00:00
sauce.conf.js chore(build): add mode Safari versions to CI 2015-08-24 18:17:56 +00:00
test-init.dart chore: update all import paths 2015-08-25 15:33:23 -07:00
test-main.dart feat(compiler): add stylesheet compiler 2015-09-04 19:22:43 +00:00
test-main.js refactor(async): replace RxJS with RxNext 2015-09-15 23:44:57 +00:00
tsconfig.json tools: updated the VS Code config 2015-07-07 08:17:58 -07:00

README.md

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

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

Get started in 5 minutes.

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.