Revert "fix(elements): fire custom element output events during component initialization (#36161)" (#37524)

This reverts commit e9bff5fe9f. Failures
were detected in Google tests due to this commit

PR Close #37524
This commit is contained in:
atscott
2020-06-10 08:31:08 -07:00
committed by atscott
parent 323651bd38
commit 742f3d6787
4 changed files with 11 additions and 52 deletions

View File

@ -117,16 +117,6 @@ if (browserDetection.supportsCustomElements) {
expect(eventValue).toEqual(null);
});
it('should listen to output events during initialization', () => {
const events: string[] = [];
const element = new NgElementCtor(injector);
element.addEventListener('strategy-event', evt => events.push((evt as CustomEvent).detail));
element.connectedCallback();
expect(events).toEqual(['connect']);
});
it('should properly set getters/setters on the element', () => {
const element = new NgElementCtor(injector);
element.fooFoo = 'foo-foo-value';
@ -265,7 +255,6 @@ if (browserDetection.supportsCustomElements) {
events = new Subject<NgElementStrategyEvent>();
connect(element: HTMLElement): void {
this.events.next({name: 'strategy-event', value: 'connect'});
this.connectedElement = element;
}