so if you dynamically specify the ng version, don’t you then need to ensure the 
other modules you’re bringing in are compatible?  Have you considered making 
having 2 builds and pulling down the appropriate one?


> On Jan 24, 2015, at 11:19 AM, Paul C <pkci...@gmail.com> wrote:
> 
> This seems to work...
> 1) Remove ng-app declaration in <html> element so when angular loads it 
> doesn't try to automatically compile document
> 2) in the complete handler, explicitly boostrap it
> complete: function () {
>   angular.bootstrap(document, ['dashboardApp']);
> } 
> 
> On Saturday, January 24, 2015 at 6:47:30 AM UTC-8, Paul C wrote:
> Is there a way to use jQuery $.getScript, yepnope, requirejs, etc... for 
> angular.  We must support IE8 (angular 1.2) but also need angular 1.3 for 
> other browsers.
> 
> I have tried getScript and yepnope but it is not loading modules defined in 
> my scripts.
> 
> <script type="text/javascript" src="js/modernizr-custom.min.js"></script>
> <script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
> <script type="text/javascript">
>   yepnope({
>     load: [
>       'js/jquery.cookie.js',
>       'js/bootstrap.min.js',
>       'js/angular'+angularVersion+'.min.js',
>       'js/angular-route'+angularVersion+'.min.js',
>       'js/angular-resource'+angularVersion+'.min.js',
>       'js/angular-animate'+angularVersion+'.min.js',
>       'js/angular-sanitize'+angularVersion+'.min.js',
>       'js/ui-bootstrap-tpls-0.11.2.min.js',
>       'js/angular-strap.min.js',
>       'js/angular-strap.tpl.min.js',
>       'js/colResizable-1.5.min.js',
>       'js/dashboard/dashboard-app.js',
>       'js/dashboard/dashboard-svc.js',
>       'js/dashboard/dashboard-ctrl.js',
>       'js/dashboard/dashboard-row-links.js',
>       'js/dashboard/dashboard-details-ctrl.js',
>       'js/dashboard/by-fields-filter.js',
>       'js/dashboard/column-filter-component.js',
>       'js/util/utils.js',
>       'js/util/notify-svc.js',
>       'js/util/app-config-svc.js',
>       'js/util/col-resizable.js',
>       'js/util/outside-click.js',
>       'js/util/valid-regex.js',
>       'js/util/health-check.js'],
>     complete: function () {
>       // call something here to tell angular to compile and load app module???
>     }
>   });
> </script>
> Error
> Module 'dashboardApp' is not available! You either misspelled the module name 
> or forgot to load it. If registering a module ensure that you specify the 
> dependencies as the second argument.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to angular+unsubscr...@googlegroups.com 
> <mailto:angular+unsubscr...@googlegroups.com>.
> To post to this group, send email to angular@googlegroups.com 
> <mailto:angular@googlegroups.com>.
> Visit this group at http://groups.google.com/group/angular 
> <http://groups.google.com/group/angular>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to