<div class="widget-content"> <div class="scrollable widget-resize"> <div class="padd"> @Html.Partial("_EditFormAlerts") </div> <div class="col-sm-2 panel-container"> <ul class="nav nav-pills nav-stacked"> <li data-ui-sref-active="active" class="active"> <a data-toggle="pill" href="" data-ui-sref=".general ">@Labels.general</a> </li> <li data-ui-sref-active="active" class="active"> <a data-toggle="pill" href="" data-ui-sref=".contact">@Labels.contact</a> </li> <li data-ui-sref-active="active" class="active" data-ng-show="!isNew"> <a data-toggle="pill" href="" data-ui-sref=".invoices">@Labels.invoices</a> </li> <li data-ui-sref-active="active" class="active" data-ng-show="!isNew"> <a data-toggle="pill" href="" data-ui-sref=".invoicesToBePaid"> @Labels.payInvoices</a> </li> <li data-ui-sref-active="active" class="active" data-ng-show="!isNew"> <a data-toggle="pill" href="" data-ui-sref=".applyFees" ng-class="{true: 'invalid-tab', false: ''}[form.applyFees.$invalid]"> @Labels.applyFees</a> </li> <li data-ui-sref-active="active" class="active"> <a data-toggle="pill" href="" data-ui-sref=".userdefined">@Labels.userDefined</a> </li> <li data-ui-sref-active="active" class="active"> <a data-toggle="pill" href="" data-ui-sref=".security">@Labels.securityRestrictions</a> </li> <li data-ui-sref-active="active" class="active"> <a data-toggle="pill" href="" data-ui-sref=".web">@Labels.web</a> </li> </ul> </div> <div class="col-sm-10 panel-container"> <div data-ui-view data-autoscroll="false"></div> <div data-ui-view="invoices" data-autoscroll="false"></div> </div> </div>And the views are defined in the controller's code. Now, when we switch between tabs, we're getting a syntax error (if the Google Chrome Developer's Tools are activated). The error is from jquery and in the calling chain we see bootstrap calls. So, the consultant suggested to switch to tabs directive from angular-ui as he suspects that bootstrap may be running code using DOM manipulation when not everything is properly loaded yet and this is causing that error. That's his guess.