title: How to SSR on specific routes on angular-universal?
body: <p>I am using angular-universal in my <code>PWA</code> app for <code>SEO</code> purpose which is working fine, but it has the following issues </p>
  
  <p>1). <code>PWA</code> app is not working in offline mode.
  2). During first time load of the app, it flickers screen component (i think it is due to <code>SSR</code>)</p>
  
  <p>So what I was thinking like if we are able to configure angular-universal like it will only process SSR on specific routes (i.e. product detail page) and rest of the routes will server as a normal angular app, so it will resolve screen flicker issue, also by default on root route it will work as normal angular app so <code>PWA</code> on offline mode will also work.</p>
  
  <p>Is there any way to configure <code>SSR</code> on specific routes?</p>
  
  <p>Here we can see that <code>SSR</code> is applying for every route:</p>
  
  <pre><code>app.set('view engine', 'html');
  app.set('views', join(DIST_FOLDER, 'browser'));
  
  app.get('*.*', express.static(join(DIST_FOLDER, 'browser')));
  
  app.get('*', (req, res) =&gt; {
    res.render(join(DIST_FOLDER, 'browser', 'index.html'), { req });
  });
  
  app.listen(PORT, () =&gt; {
    console.log(Node server listening on http://localhost:${PORT});
  });
  </code></pre>