title: Cannot read property 'construct' of undefined
body: <pre><code>var Company;
  (function (Company) {
      var companyApp = angular.module('company', ['ngRoute', 'ngResource']);
      companyApp.constant('servicePath', Company.PathHelper.construct(''));
      companyApp.config(Company.HomeConfig);
      companyApp
          .controller('employeeController', Company.EmployeeController)
          .factory('employeeResource', Company.employeeFactory)
          .controller('departmentController', Company.DepartmentController)
          .factory('departmentResource', Company.departmentFactory);
  })(Company || (Company = {}));
  </code></pre>
  
  <p>Can anyone please help me why i get next  error on line</p>
  
  <pre><code>companyApp.constant('servicePath', Company.PathHelper.construct(''));
  </code></pre>
  
  <p>Uncaught TypeError: Cannot read property 'construct' of undefined</p>
  
  <p>My PathHelper:</p>
  
  <pre><code>  var Company;
  (function (Company) {
      var PathHelper = (function () {
          function PathHelper() {
          }
          PathHelper.construct = function (virtualPath) {
              return location.protocol + '//' + location.host + '/' + virtualPath;
          };
          return PathHelper;
      })();
      Company.PathHelper = PathHelper;
  })(Company || (Company = {}));
  </code></pre>