web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How to inject angular ...
Power Pages
Answered

How to inject angular app in entity form in portal?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have following code to load angular app which works in web template:

 

<app-root></app-root>

 

  <script src="/runtime-es2015.0811dcefd377500b5b1a.js" type="module"></script>

  <script src="/runtime-es5.0811dcefd377500b5b1a.js" nomodule defer></script>

  <script src="/polyfills-es5.1a3c78b07cd6f16c6e9a.js" nomodule defer></script>

  <script src="/polyfills-es2015.1f913f16a2d346cc8bdc.js" type="module"></script>

  <script src="/scripts.400fab32349b038c877c.js" defer></script>

  <script src="/main-es2015.8e75e246e88a20a49836.js" type="module"></script>

  <script src="/main-es5.8e75e246e88a20a49836.js" nomodule defer></script>

  <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>

  <script src="/initmap.js"></script>

 

But I want to load this map app into a custom entity form which loads in bootstrap modal.

 

It is possible to achieve it?

Categories:
  • justinburch Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    No, because your entity form is pre-built HTML and you don't have anywhere to actually place the app-root (e.g., the Page Copy of a 'Web Page' could technically suffice).

    However, you can try to create a Web Template (disable header/footer) with the angular components and entity form, add that to a Web Page, and then create a custom modal in your existing Web Page that opens this web page as a modal.

    I had issues integrating an entity form into an angular app for a Dynamics Marketing implementation, but I'm not an Angular expert. Instead, I relied on creating my own custom API calls to replace the entity form; you may have to do the same.

    This might be because anywhere an entityform is included will automatically include additional necessary files - e.g. make a Web Template with just {% entityform %} and you'll find a few JS files - and I think there might be conflict there.

    However, I have seen a team use VueJS to build a custom page and then just map the event triggers of the field changes to a hidden entity form below, so there's obviously some maneuverability there.

  • Fubar Profile Picture
    17 Super User 2026 Season 1 on at

    I am not an Angular person so can't help much, but people have used Angular with the portal (see https://powerusers.microsoft.com/t5/Power-Apps-Portals/How-to-integrate-an-angular-app-into-portal/m-p/727769#M4466), your difficulty will be that you appear to want to use it in an Entity Form rather than an Entity Form on a Web Page.  Whilst the Entity Form itself doesn't give you as much control as when it is a Web Page based form, you can embed a Web Resource (HTML and JS) into your entity form, and via the entity form settings have it render (this is one way to get tags into the popup entity form).

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks everyone. I have resolved my problem, like I have added angular app in template file and then hide it and then entity form open in pop up I have just clone the content of the a div which contains angular app and inject that content into a tab I have created in entity form. That works now.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
M Bilal Khan Profile Picture

M Bilal Khan 134

#2
Mohsin Ali Profile Picture

Mohsin Ali 36

#3
11manish Profile Picture

11manish 14 Super User 2026 Season 2

Last 30 days Overall leaderboard