Connect Angular App to DHIS2 Instance

Hi

I want to create a simple web application in Angular Js and wants to connect it with DHIS2 Instance on my local machine, But don’t know where to start. I can’t find any useful links for help.
Any help is highly appreciated.
Thanks

Hi @sami12111

Great question!

We don’t officially support angular development. However, you should be able to use the API to integrate with your DHIS2 instance.

We recommend you to use React, though. We’ve got several packages to take a lot of work out of your hands for that. You can find more about that: Prerequisites and initial setup | DHIS2 Developer Portal

4 Likes

Hello @sami12111 , have you tried using the proxy concept from the angular documentation?

You can follow this example using angular 12 if interested. However, as @Rene said, you are better off with the React option with the packages offered by the DHIS2 core team.

2 Likes