window.evoapp = angular.module('evoapp', []); window.evoapp.config(function($sceProvider) { // Completely disable SCE. For demonstration purposes only! // Do not use in new projects. $sceProvider.enabled(false); }); //create models namespace window.evoapp.models = {}; $(function(){ $.fn.modal.defaults.spinner = $.fn.modalmanager.defaults.spinner = '
' + '
' + '
Por favor aguarde...
' + '
' + '
'; $('body').modalmanager('loading'); $('#main-panel').hide(); // ---> views-all.html // ---> GetViewsHtml.aspx $.get(window.evoapp.CTXPATH + 'getViews', function( data ) { var body = $('body'); var viewCache = $('
'); viewCache.append(data); body.attr('ng-controller', 'MainController'); angular.bootstrap(body, ['evoapp']); var scope = angular.element(body).scope(); scope.$parent.viewCache = viewCache; scope.viewCache = viewCache; scope.boot(); }); });