Scriptly Helps Pharmacies Identify Trends in Real Time with Reveal
Find out how to integrate embedded analytics into Angular applications with a .NET Core backend, for better decision-making capabilities that drive engagement and ROI.
Executive Summary:
Embedded analytics is no longer an optional feature—it’s a necessity for modern applications. In 2025, users demand seamless access to real-time insights directly within the tools they use daily. By integrating embedded analytics into Angular applications with a .NET Core backend, businesses can elevate their products with data-driven decision-making capabilities that drive engagement and ROI.
This guide provides a comprehensive walkthrough of embedding analytics into your software products using Reveal Embedded Analytics. Whether you’re a developer integrating analytics or a product manager planning feature enhancements, this step-by-step guide provides the insights you need.
Embedded analytics refers to the integration of data visualization and business intelligence (BI) tools directly into software applications. Unlike standalone BI solutions, embedded analytics allows users to access insights in context without switching between platforms.
**Streamlined Workflows:**Users can analyze data and take action within a single application.
Improved User Experience: Context-aware insights reduce friction and enhance decision-making.
Increased Product Value: Applications equipped with analytic capabilities differentiate themselves in competitive markets.
Combining Angular’s dynamic frontend capabilities with .NET Core’s robust backend infrastructure creates a powerful client/server framework.
Adding embedded analytics to this mix provides:
**Enhanced Functionality:**Deliver actionable insights in real-time.
User Retention: Keep users engaged by addressing their analytical needs.
**Scalability:**Angular and .NET Core support applications designed to grow with your business.
Integrating embedded analytics into your Angular applications with a .NET Core backend can significantly enhance the user experience by providing real-time, contextual insights.
The instructions below outline the steps to set up your development environment and seamlessly implement Reveal.
Before integrating embedded analytics, ensure your development environment is properly configured.
**Angular CLI:**For creating and managing Angular applications.
.NET Core SDK: To build backend services.
**Node.js:**Required for Angular development.
**Reveal SDK:**To embed analytics into your application.

ng new getting-started
cd getting-started
code
<script src="https://dl.revealbi.io/reveal/libs/1.7.1/infragistics.reveal.js"></script>
jQuery 2.2 or Greater:
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
Day,js 1.8.15 or Greater:
<script src="https://unpkg.com/dayjs@1.8.21/dayjs.min.js"></script>
Update the Final index.html Your index.html file should now look like this:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GettingStarted</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root></app-root>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
<script src="https://unpkg.com/dayjs@1.8.21/dayjs.min.js"></script>
<script src="https://dl.revealbi.io/reveal/libs/1.7.1/infragistics.reveal.js"></script>
</body>
</html>
Update the HTML Component Open the src/app/app.component.html file, delete its contents, and add the following
<div #revealView style="height: 100vh; width: 100%; position:relative;"></div>
Update the HTML Component Open the src/app/app.component.html file to make the following updates:
Declare jQuery: At the top of the file, declare a variable to ensure TypeScript can compile your JavaScript:
declare let $: any;
Add a ViewChild Property: Reference the revealView defined in the HTML file:
@ViewChild('revealView') el!: ElementRef;
**
Implement the AfterViewInit Interface: Initialize the Reveal view in the ngAfterViewInit lifecycle method:
ngAfterViewInit(): void {
var revealView = new $.ig.RevealView(this.el.nativeElement); }
Final app.component.ts: Your complete TypeScript component should look like this:
import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core';
declare let $: any;
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent implements AfterViewInit {
@ViewChild('revealView') el!: ElementRef;
ngAfterViewInit(): void {
var revealView = new $.ig.RevealView(this.el.nativeElement);
}
}
Set the Reveal SDK Base URL: If your client app is hosted on a different URL from the server, ensure you set the base URL:
Start the Application In the terminal, run the following command:
npm: npm start
Yarn: yarn start
Pnpm:pnpm start
Test Your Application Once the application starts, open it in your browser. The Reveal view should initialize successfully.
Congratulations!
You’ve successfully created your first Reveal SDK Angular application. With this setup, you’re ready to leverage the power of embedded analytics to enhance your users’ experience and drive actionable insights.
Security Measures
Authentication: Implement robust authentication mechanisms like OAuth or JWT to protect sensitive data.
Data Access Control: Use role-based permissions to ensure users access only what they’re authorized to view.
HTTPS: Always use secure connections for data transmission.
Performance Optimization
Data Caching: Reduce server load by caching frequently accessed data.
**Lazy Loading:**Load dashboards and components only when needed to improve app speed.
**Backend Optimization:**Optimize database queries to handle large datasets efficiently.
Integrating embedded analytics into Angular applications with a .NET Core backend is a game-changer for modern software products. By following this guide, you can enhance your application with robust analytics capabilities, driving value for users. Reveal Embedded Analytics makes this process seamless, offering powerful tools for embedding data visualizations, ensuring security, and optimizing performance.
Ready to take your application to the next level? Book a call on the Reveal website to see how we can solve your embedded analytics needs.