Files
pulse/content/integrations/angular.mdx
Usman Baig 627613dc13 fix: code blocks rendering + consistent styling with ciphera-website /learn
- Convert MDX CodeBlock components to standard markdown code fences
- Add rehype-mdx-code-props to pass filename meta to code components
- Custom pre/code MDX components map fences to CodeBlock
- Add brand color badges (product + category) matching /learn layout
- Match prose styling: orange inline code, orange links, white strong
- Remove brand color background glow (not in /learn)
2026-03-29 01:01:56 +01:00

42 lines
970 B
Plaintext

---
title: "Angular"
description: "Add Pulse analytics to your Angular application. Simple index.html setup for all Angular versions."
category: "framework"
brandColor: "#0F0F11"
officialUrl: "https://angular.dev"
relatedIds: ["react", "vue"]
date: "2026-03-28"
---
Add the script to your `src/index.html` — the single entry point for all Angular applications.
---
## Add the Pulse script to index.html
Place the Pulse script inside the `<head>` tag of your Angular app's `src/index.html`.
```html filename="src/index.html"
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script
defer
data-domain="your-site.com"
src="https://pulse.ciphera.net/script.js"
></script>
<title>My Angular App</title>
<base href="/">
</head>
<body>
<app-root></app-root>
</body>
</html>
```
For more details, see the [Angular docs](https://angular.dev/guide/components).