"Tried to load angular more than once" warning - Only on initial page load
<p>I'm getting the <code>Tried to load angular more than once</code> warning only when I load the page initially.</p>

<p>Due to this warning, my bindings don't seem to work. But when I reload the page, I don't get the warning and everything seems to bind and work correctly.</p>

<p><strong>I'm not using any routes or ui-view!</strong> (I've seen the other SO posts and I don't think they apply to my case).</p>

<p>I double checked and made sure that I only have Angular JS referenced once. My usage of Angular JS is really simple at this point.</p>

<p>I have Angular JS referenced in the layout / the master page in this order -</p>

<pre><code>jquery
jquery-ujs   // Rails Unobtrusive jQuery Adapter
jquery-ui
angular
foundation  // ZURB Foundation 6
turbolinks  // Rails Turbolinks
</code></pre>

<p>Here is how my Angular template looks like -</p>

<pre><code>&lt;body ng-app="test"&gt;
   &lt;div ng-controller="TestController"&gt;
      &lt;div ng-init="items = &lt;%= items.to_json %&gt;"&gt;
         &lt;div ng-repeat="item in items"&gt;
           &lt;p ng-bind="item"&gt;&lt;/p&gt;
         &lt;/div&gt;
      &lt;/div&gt;
   &lt;/div&gt;
&lt;/body&gt;
</code></pre>

<p><code>items</code> is a Rails object and I basically hand it off to Angular for the initial load.</p>

<p>Here is what I have in the Javascript in my Layout page -</p>

<pre><code>var app = angular.module('test', []);
</code></pre>

<p>Here is what I have in the Javascript for the View / Content page - </p>

<pre><code>app.controller('TestController', ['$scope', '$http', '$compile',    function($scope, $http, $compile){ 
   // Some Functions
}]);
</code></pre>

<p>Any help would be greatly appreciated!</p>

<p><strong>Note:</strong> The <code>Tried to load angular more than once</code> warning shows up for every page I visit unless I reload the page and I don't get the warning and the bindings seem to work correctly. </p>

<p>Here is a screenshot, after visiting 4 pages without reloading any of them -</p>

<p><a href="https://i.stack.imgur.com/zzMmf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zzMmf.png" alt="enter image description here"></a></p>

<p>Once I reload a page, I don't get the warning and the bindings work correctly.</p>