old_contents: 'use strict';
  
  /**
   * @ngdoc overview
   * @name angularApp
   * @description
   * # angularApp
   *
   * Main module of the application.
   */
  var angularApp = angular
    .module('angularApp', [
      'ngAnimate',
      'ngAria',
      'ngCookies',
      'ngMessages',
      'ngResource',
      'ngRoute',
      'ngSanitize',
      'ngTouch'
    ])
  
   angularApp.config(function($interpolateProvider) {
      $interpolateProvider.startSymbol('[[');
      $interpolateProvider.endSymbol(']]');
    });
  
    angularApp.config(function ($routeProvider) {
      $routeProvider
        .when('/', {
          templateUrl: 'views/main.html',
          controller: 'MainCtrl',
          controllerAs: 'main'
        })
        .when('/book', {
          templateUrl: 'views/book.html',
          controller: 'BookCtrl',
          controllerAs: 'book'
        })
        .when('/code', {
          templateUrl: 'views/code.html',
          controller: 'CodeCtrl',
          controllerAs: 'code'
        })
        .when('/about', {
          templateUrl: 'views/about.html',
          controller: 'AboutCtrl',
          controllerAs: 'about'
        })
        .otherwise({
          redirectTo: '/'
        });
    });
  
  angularApp.factory("config",function(){
      var config = {
          envirement:"dev",
          dev:{
              hrefs:{
                  book:"http://localhost:4000",
                  code:"http://localhost:10080",
                  test:"http://localhost:10081"
              }
          },
          pro:{
              hrefs:{
                  book:"http://docs.dockerdocs.cn",
                  code:"http://gitlab.dockerdocs.cn",
                  test:"http://gitlabci.dockerdocs.cn"
              }
          }
      }
      return config;
  });
  
  angularApp.config(function($sceDelegateProvider) {
    $sceDelegateProvider.resourceUrlWhitelist([
      // Allow same origin resource loads.
      'self',
      // Allow loading from our assets domain.  Notice the difference between * and **.
      'http://*.dockerdocs.cn/**',
      'http://*.docker.io/**',
      'http://*.docker.com/**',
      'http://localhost:4000/**',   // gitbook
      'http://localhost:10080/**',  // gitlab
      'http://localhost:10081/**',  // gitlab ci
    ]);
  });
  
new_contents: 'use strict';
  
  /**
   * @ngdoc overview
   * @name angularApp
   * @description
   * # angularApp
   *
   * Main module of the application.
   */
  var angularApp = angular
    .module('angularApp', [
      'ngAnimate',
      'ngAria',
      'ngCookies',
      'ngMessages',
      'ngResource',
      'ngRoute',
      'ngSanitize',
      'ngTouch'
    ])
  
   angularApp.config(function($interpolateProvider) {
      $interpolateProvider.startSymbol('[[');
      $interpolateProvider.endSymbol(']]');
    });
  
    angularApp.config(function ($routeProvider) {
      $routeProvider
        .when('/', {
          templateUrl: 'views/main.html',
          controller: 'MainCtrl',
          controllerAs: 'main'
        })
        .when('/book', {
          templateUrl: 'views/book.html',
          controller: 'BookCtrl',
          controllerAs: 'book'
        })
        .when('/code', {
          templateUrl: 'views/code.html',
          controller: 'CodeCtrl',
          controllerAs: 'code'
        })
        .when('/cicd', {
          templateUrl: 'views/cicd.html',
          controller: 'CicdCtrl',
          controllerAs: 'cicd'
        })
        .when('/about', {
          templateUrl: 'views/about.html',
          controller: 'AboutCtrl',
          controllerAs: 'about'
        })
        .otherwise({
          redirectTo: '/'
        });
    });
  
  angularApp.factory("config",function(){
      var config = {
          envirement:"dev",
          dev:{
              hrefs:{
                  book:"http://localhost:4000",
                  code:"http://localhost:10080",
                  test:"http://localhost:10081"
              }
          },
          pro:{
              hrefs:{
                  book:"http://docs.dockerdocs.cn",
                  code:"http://gitlab.dockerdocs.cn",
                  test:"http://gitlabci.dockerdocs.cn"
              }
          }
      }
      return config;
  });
  
  angularApp.config(function($sceDelegateProvider) {
    $sceDelegateProvider.resourceUrlWhitelist([
      // Allow same origin resource loads.
      'self',
      // Allow loading from our assets domain.  Notice the difference between * and **.
      'http://*.dockerdocs.cn/**',
      'http://*.docker.io/**',
      'http://*.docker.com/**',
      'http://localhost:4000/**',   // gitbook
      'http://localhost:10080/**',  // gitlab
      'http://localhost:10081/**',  // gitlab ci
    ]);
  });
  
subject: Update app.js