亲爱的,我有以下文件夹angular_components
现在在我写的这个文件夹中加载这个文件
//= require_tree ./angular-components
文件的加载方式如下
<script src="/assets/angular-components/mapAutoComplete/autoCompleteAddressApp.js?body=1"></script>
<script src="/assets/angular-components/mapAutoComplete/directive/controllers/googleAddressSuggestion.js?body=1"></script>
<script src="/assets/angular-components/mapAutoComplete/directive/googleAddressSuggestion.js?body=1"></script>
<script src="/assets/angular-components/mapAutoComplete/services/locationDataService.js?body=1"></script>
<script src="/assets/angular-components/stripePayment/lib/angularPayment.js?body=1"></script>
<script src="/assets/angular-components/stripePayment/services/stripeService.js?body=1"></script>
<script src="/assets/angular-components/stripePayment/stripePaymentApp.js?body=1"></script>
在mapAutoComplete目录中,根文件夹autoCompleteAddressApp中的文件。js加载在另一个文件之前,但是在stripePaymentApp的stripePayment中。js,它位于最后加载的根文件夹中。为什么会发生这种情况?在这两种情况下,如何确保在子目录文件之前加载根文件?