mirror of
https://github.com/angular/angular.git
synced 2026-11-24 23:47:51 -05:00
5b5d31fa9a8871cfdba468fb70bbda0cbb9ce4ff
BREAKING CHANGE:
Instead of configuring pipes via a Pipes object, now you can configure them by providing the pipes property to the View decorator.
@Pipe({
name: 'double'
})
class DoublePipe {
transform(value, args) { return value * 2; }
}
@View({
template: '{{ 10 | double}}'
pipes: [DoublePipe]
})
class CustomComponent {}
Closes #3572
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.
Languages
TypeScript
72.9%
JavaScript
15.6%
Rust
6.9%
HTML
1.6%
Starlark
1.6%
Other
1.4%