title: Error: Initializers are not allowed in ambient contexts
body: <p>I upgraded my Angular version from version 2.4.0 to 4.0.0 while compiling, I am getting following errors.</p>
  
  <p><a href="https://i.stack.imgur.com/D6WwO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D6WwO.png" alt="enter image description here"></a></p>
  
  <p>How can I resolve those errors?</p>