AppWideAngularScriptIncludes

Note! The use of AppWideAngularScriptIncludes is one way of getting scripts to load high up in the page rendering.

Recently we also started to load this appwideangularscriptincludes.html file from each EXT_Components folder. This makes the EXT_Component more self sufficient and complete.

For example;

2021-04-02 16h36 01.png

The image shows a per component AppWideAngularScriptInclude file - thus removing the need for the EXT_Scripts/AppWideAngularScriptInclude file.

AppWideAngularScriptIncludes

In MDriven Turnkey for AngularJS you can add a file AppWideAngularScriptIncludes.html in EXT_Scripts.

The contents will be included in your app before Angular compile.

Typical content is:

<script src="/EXT_Scripts/BoardComponentScriptsThatUseDirectivesAndSuch.js"></script>
<script src="/EXT_Scripts/GanttComponentScriptsThatUseDirectivesAndSuch.js"></script>
<script src="/EXT_Scripts/<YourScript>.js"></script>

Check out more information in the video ☛ Plugins in Turnkey

This page was edited 32 days ago on 04/15/2024. What links here