angular.module('specialBlogApp', [
  'ngRoute',
  'ngResource'
])
  .config(function ($routeProvider, $locationProvider) {
      $routeProvider
        .when('/', {
                templateUrl: 'views/index.html',
                controller: 'HomeCtrl'
              })
        .when('/article/:articleId', {
                templateUrl: 'views/article.html',
                controller: 'ArticleCtrl'
              })
        .when('/articles', {
                templateUrl: 'views/articles.html',
                controller: 'ArticlesCtrl'
              })
        .otherwise({
                redirectTo: '/'
              });
  
      $locationProvider.html5Mode(true);
    });

angular.module('specialBlogApp', [
  'ngRoute',
  'ngResource'
])
  .config(function ($routeProvider, $locationProvider) {
      $routeProvider
        .when('/', {
                templateUrl: '/views/index.html',
                controller: 'HomeCtrl'
              })
        .when('/article/:articleId', {
                templateUrl: '/views/article.html',
                controller: 'ArticleCtrl'
              })
        .when('/articles', {
                templateUrl: '/views/articles.html',
                controller: 'ArticlesCtrl'
              })
        .otherwise({
                redirectTo: '/'
              });
  
      $locationProvider.html5Mode(true);
    });

Fix the bug of **Tried to load angular more than once.**.
Fix the bug of **Tried to load angular more than once.**.
