chore(doc-gen): capture docs for modules from comments Closes #1258 docs(*): add module description jsdoc tags docs(*): add @public tag to public modules chore(doc-gen): fix overview-dump template The template was referencing an invalid property chore(doc-gen): use `@exportedAs` and `@public` rather than `@publicModule` This commit refactors how we describe components that are re-exported in another module. For example the "public" modules like `angular/angular` and `angular/annotations` are public but they only re-export components from "private" modules. Previously, you must apply the `@publicModule` tag to a component that was to be re-exported. Applying this tag caused the destination module to become public. Now, you specify that a module is public by applying the `@public` tag and then you can "re-export" components to other modules by applying the `@exportedAs` giving the name of the module from which the component will be re-exported. tag. This tag can be used multiple times on a single component, allowing the component to be exported on multiple modules. docs(*): rename `@publicModule` to `@exportedAs` The `@publicModule` dgeni tag has been replaced by the `@exportedAs` dgeni tag on components that are to be re-exported on another module. Closes #1290
Angular
![Join the chat at https://gitter.im/angular/angular](https://badges.gitter.im/Join%20Chat.svg)
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, or 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 JS or 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).