title: Does Angular have browser-specific life cycle hooks like React?
body: <p>For instance React's <a href="https://facebook.github.io/react/docs/react-component.html#componentwillmount" rel="nofollow noreferrer">componentWillMount()</a>:</p>
  
  <blockquote>
    <p>This is the only lifecycle hook called on server rendering. Generally, we recommend using the <code>constructor()</code> instead.</p>
  </blockquote>
  
  <p>And in React's <a href="https://facebook.github.io/react/docs/react-component.html#componentdidmount" rel="nofollow noreferrer">componentDidMount()</a></p>
  
  <blockquote>
    <p><code>componentDidMount()</code> is invoked immediately after a component is mounted. Initialization that requires DOM nodes should go here.</p>
  </blockquote>
  
  <p>However I do not see anything in the Angular <a href="https://angular.io/docs/ts/latest/guide/lifecycle-hooks.html" rel="nofollow noreferrer">doc</a> specifying which ones are executed on the server and which ones are executed on the browser (or both). Or should I assume that all of them are executed on both? If so, how do you do things that require the DOM (window, document, etc.)?</p>