<head> of src/index.html. Don’t add it to the scripts list in angular.json: Angular bundles those after the page has started.
src/index.html
- No hydration wait. pagent can’t tell when Angular has finished rendering or hydrating, so
data-await-hydrationhas no effect. Leave it out. - Check your variants: content Angular renders after loading data may appear after pagent has run. Open each test’s preview link once and check that the variant shows.
- Navigation with the Angular Router is tracked automatically. With the hash location strategy, send a
navigatecommand on every route change, as described in Frameworks.
Check it worked
- Deploy, then open your site in a private browser window.
- Back in pagent, click Check connection in the install step.
- Open a test’s preview link and check that the variant shows and stays after the page has finished loading.