Where does DOM manipulation belong in Angular 2?
In Angular 1 all DOM manipulation should be done in directives to ensure proper testability, but what about Angular 2? How has this changed? I've been searching for good articles or any information at all about where to put DOM manipulation and how to think when doing it, but I come up empty every time. Take this component for example (this is really a directive but let's pretend that it's not): export class MyComponent { constructor(private _elementRef: ElementRef) { this.setHeight(); window.addEventListener('resize', (e) => { this.setHeight(); }); } setHeight() { this._elementRef