angular-docs-cn/tools
Tobias Bosch f5c8e0989d feat(core): properly support inheritance
## Inheritance Semantics:

Decorators:
1) list the decorators of the class and its parents in the ancestor first order
2) only use the last decorator of each kind (e.g. @Component / ...)

Constructor parameters:
If a class inherits from a parent class and does not declare
a constructor, it inherits the parent class constructor,
and with it the parameter metadata of that parent class.

Lifecycle hooks:
Follow the normal class inheritance model,
i.e. lifecycle hooks of parent classes will be called
even if the method is not overwritten in the child class.

## Example

E.g. the following is a valid use of inheritance and it will
also inherit all metadata:

```
@Directive({selector: 'someDir'})
class ParentDirective {
  constructor(someDep: SomeDep) {}

  ngOnInit() {}
}

class ChildDirective extends ParentDirective {}
```

Closes #11606
Closes #12892
2016-11-28 14:12:12 -08:00
..
@angular/tsc-wrapped feat(core): properly support inheritance 2016-11-28 14:12:12 -08:00
build chore(build): remove unused build/util 2016-11-07 10:32:00 -08:00
cjs-jasmine refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
code.angularjs.org build(publish): remove unneeded add-license-to-rx (#12734) 2016-11-10 15:56:14 -08:00
karma refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
npm chore(npm): clean up clean-shrinkwrap script 2016-10-31 11:26:59 -07:00
public_api_guard feat(core): expose destroy() method on ViewRef 2016-11-28 14:10:42 -08:00
travis refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
tree-shaking-test refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
tsc-watch Keep `console.log` that are not called during compilation. 2016-11-23 15:47:02 -08:00
tslint refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
typings-test style: add missing semicolons 2016-10-31 14:25:53 -07:00
check-environment.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
chromedriverpatch.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
jsconfig.json chore(vscode): add jsconfig.json and remove .settings dir 2015-10-29 13:53:21 +00:00
tsconfig.json fix(packages): use ES modules for primary build (#11120) 2016-08-30 18:07:40 -07:00
types.d.ts fix(fakeAsync): have fakeAsync use Proxy zone. (#10797) 2016-08-19 12:10:53 -07:00
utils.inc feat(bundle): add script to push bundles to code.angularjs.org 2015-04-14 14:50:53 -07:00