Install Fundraise Up in an Angular application
Use this guide to install Fundraise Up in an Angular application, add Elements to Angular templates, and support client-side navigation.
Install Fundraise Up
Add your organization’s installation code once in the global document head:
- In Fundraise Up Dashboard, go to Settings > Installation.
- Copy your organization’s installation code.
- In your Angular project, open
src/index.html. - Paste the installation code as the last script in the
<head>section. - Build and deploy the application.
Keep the installation code loaded for the entire application session. Do not add another copy to individual components or routes, and do not remove or reinitialize it when the route changes.
Add Elements to Angular templates
Fundraise Up provides an HTML snippet for each Element. Add this snippet directly to the Angular component template where you want the Element to appear:
- In Fundraise Up Dashboard, create or open an Element.
- Copy the Element’s HTML code.
- Open the Angular component’s
.htmltemplate. - Paste the HTML code where the Element should appear.
- Keep the generated markup unchanged, including
style="display: none". - Build and test the application.
You can create an Angular wrapper component when the same Element must appear in several templates, but a wrapper is not required.
Related articles
Fundraise Up can be seamlessly integrated into websites powered by Vue.js, a popular JavaScript framework for building user interfaces.
Installing Fundraise Up in a Vue.js application
To use Fundraise
To use Fundraise Up in a React application, install your organization’s installation code once in the global document head and keep it loaded across the application.
Install Fundraise Up
In Fundraise Up