title: WARNING: Tried to load angular more than once. Angular JS
body: <p>I am trying to view my app after running Grunt Build. I use grunt serve:dist to see all production ready build but in the browser I get an infinite loop saying:</p>
  
  <blockquote>
    <p>WARNING: Tried to load angular more than once. </p>
  </blockquote>
  
  <p>I have read this occurs because the TemplateURL: may be wrong after concatenation. As in this post:
  <a href="https://stackoverflow.com/questions/22595878/tried-to-load-angular-more-than-once">Tried to Load Angular More Than Once</a></p>
  
  <p>But how do I fix this? Here is my app.js</p>
  
  <pre><code>/* global libjsapp:true */
  
  
  'use strict';
  
  var libjsapp = angular.module('libjsApp', [
    'ngCookies',
    'ngResource',
    'ngSanitize',
    'ngRoute'
  ]);
  
  libjsapp.config(['$routeProvider', function ($routeProvider, $locationProvider) {
      $routeProvider
        .when('/', {
          templateUrl: 'views/posts.html',
          controller: 'PostsCtrl'
        })
        .otherwise({
          redirectTo: '/'
        });
    }]);
  </code></pre>