$(document).ready(function () { if (VTO.Settings.IsExternalTemplate) { //Citybreak strips the body tag so this is to restore that before bootstraping angular var $body = $("body"); if (!$body.attr("class") || $body.attr("class").indexOf("layout-") == -1) { $body.addClass(VTO.Settings.BodyCssClass); } if (!$body.attr("ng-controller")) { $body.attr("ng-controller", "coreLayoutMain"); } if (!$body.attr("ng-class")) { $body.attr("ng-class", "{'nav-is-open': switchMenu, 'covered': isCovered}"); } } angular.bootstrap(document, ['VTO']); });