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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.