"use strict"; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } (function () { "use strict"; var MainCtrl = function MainCtrl($rootScope, $location, $window) { _classCallCheck(this, MainCtrl); this.headerLabelHome = ""; var _self = this; $rootScope.$on("$routeChangeSuccess", function (event, current, previous) { _self.headerLabelHome = current.hasOwnProperty("$$route") ? current.$$route.title : "INVALID_URL_TITLE"; if ($window.ga !== undefined && $window.ga != null) { $window.ga("set", "page", $location.url()); $window.ga("send", "pageview"); } }); }; angular.module("agp.homeModule.main", []).controller("HomeMainCtrl", MainCtrl); }).call();