title: Angular production not working on website
body: <p>I have developed a simple Angular app that works perfectly in developing mode but produces an error when building with <code>ng build</code> or <code>ng build --prod</code>.</p>
  
  <p>error:</p>
  
  <blockquote>
    <p>SyntaxError: expected expression, got '&lt;'</p>
  </blockquote>
  
  <p>Clicking on the error opens up a html page highlighting "&lt;!DOCTYPE html>". The html page is from the root index.php file which the Angular shouldn't try to access. </p>
  
  <p>Is the problem that Angular doesn't know it's position in the file system?</p>
  
  <p><strong>Edit:</strong>
  It's been solved.
  The problem was that the angular program was not in the root folder of the server. </p>
  
  <p>A fix to this is ti manually change the index.html in the dist folder. There is a tag element called base that indicates where the base root folder for the angular app is, <em>&lt;\base href="/home/"></em>. Change it to your prefered subfolder for your angular app.</p>