asp.net - web host claims angular is not supported? -
i published asp.net project winhost.com works except angular. assumed linking problem or incorrect path. jquery working fine. error when try load page is:
uncaught error: [$injector:modulerr] http://errors.angularjs.org/1.2.15/$injector/modulerr?p0=texasiceapp&p1=err…js.org%2f1.2.15%2f%24injector%2funpr%3fp0%3dn%0a%20%20%20%20at%20error%20(...<omitted>...0) angular?v=6jqv6bprzjtlcnp9nkz6zugfhwmvvjtnrzazrqgn2mi1:1
when run on localhost works fine. when emailed there support staff there response: hello,
i'm sorry don't support angularjs in our hosting environment.
please let me know if have further questions,
moises winhost support department
how not supported? isnt javascript?? has else had problem?
app.js
'use strict'; var app = angular.module('texasiceapp', [ 'ngcookies', 'ngresource', 'ngsanitize', 'ngroute', 'ui.bootstrap', 'ngekathuwa' ])
bundleconfig
public class bundleconfig { // more information on bundling, visit http://go.microsoft.com/fwlink/?linkid=301862 public static void registerbundles(bundlecollection bundles) { bundles.add(new scriptbundle("~/bundles/jquery").include( "~/scripts/jquery-{version}.js", "~/scripts/jquery-ui-1.10.4.js" )); bundles.add(new scriptbundle("~/bundles/jqueryval").include( "~/scripts/jquery.validate*")); bundles.add(new scriptbundle("~/bundles/angular").include( "~/scripts/angular.js", "~/scripts/angular-cookies.js", "~/scripts/angular-resource.js", "~/scripts/angular-sanitize.js", "~/scripts/ui-bootstrap-tpls-{version}.js", "~/scripts/angular-route.js", "~/myscripts/app.js", "~/myscripts/ajaxpostcontroller.js", "~/myscripts/ajaxitemcontroller.js", "~/myscripts/ajaxgallerycontroller.js", "~/myscripts/maincontroller.js", "~/myscripts/ekathuwa.js")); // use development version of modernizr develop , learn from. then, when you're // ready production, use build tool @ http://modernizr.com pick tests need. bundles.add(new scriptbundle("~/bundles/modernizr").include( "~/scripts/modernizr-*")); bundles.add(new scriptbundle("~/bundles/bootstrap").include( "~/scripts/bootstrap.js", "~/scripts/fileupload/jquery.fileupload.js", "~/scripts/fileupload/jquery.iframe-transport.js", "~/scripts/fileupload/jqueryui/jquery.ui-widget.js", "~/scripts/jquery.fancybox.js", "~/myscripts/myjquery.js", "~/myscripts/lightbox.js", "~/scripts/respond.js")); bundles.add(new stylebundle("~/content/css").include( "~/content/bootstrap.css", "~/content/jquery.fancybox.css", "~/content/fileupload/css/jqueryui/jquery.fileupload-ui.css", "~/content/site.css"));
i took @ generated code angular think problem may have ngekathuwa
defined last in angular bundle (the ekathuwa.js file). put ekathuwa.js file before app.js in bundle definition , if hunch correct, solve problem.
Comments
Post a Comment