angular/modules/@angular/core/test
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
..
animation fix(animations): retain styling when transition destinations are changed (#12208) 2016-11-14 16:59:06 -08:00
change_detection refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
debug refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
di refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
dom refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
facade refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
linker fix(core): support ngTemplateOutlet in production mode (#12921) 2016-11-16 10:00:18 -08:00
metadata refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
reflection feat(core): properly support inheritance 2016-11-28 14:12:12 -08:00
testability refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
util feat(core): properly support inheritance 2016-11-28 14:12:12 -08:00
zone refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
application_init_spec.ts chore(lint): remove unused imports (#11923) 2016-09-27 17:12:25 -07:00
application_module_spec.ts chore(lint): remove unused imports (#11923) 2016-09-27 17:12:25 -07:00
application_ref_spec.ts feat(core): add attachView / detachView to ApplicationRef 2016-11-14 17:01:35 -08:00
component_fixture_spec.ts refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
dev_mode_spec.ts fix(testing): remove deprecated testing APIs (#9923) 2016-07-11 16:04:32 -07:00
directive_lifecycle_integration_spec.ts refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
error_handler_spec.ts refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
fake_async_spec.ts refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
forward_ref_integration_spec.ts fix(DomSchemaRegistry): detect invalid elements 2016-08-30 21:32:03 -07:00
spies.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
testing_internal_spec.ts refactor: kill MapWrapper 2016-11-04 13:27:38 -07:00