I have a pretty simple Angular application that works fine on my dev machine, but fails with this error message (in the browser console) after deploying it:
Uncaught Error: [$injector:unpr] http://errors.angularjs.org/undefined/$injector/unpr?p0=tProvider%20%3C-%20t%20%3C-%20%24http%20%3C-%20%24compile
No other posts besides this. This happens when the page first loads.
I run ASP.NET MVC5, Angular 1.2RC3 and click on Azure via git.
Google did not find anything interesting.
Any suggestions?
EDIT:
I use TypeScript and define my dependencies with the $inject variable, for example:
export class DashboardCtrl { public static $inject = [ '$scope', '$location', 'dashboardStorage' ]; constructor( private $scope: IDashboardScope, private $location: ng.ILocationService, private storage: IDashboardStorage) { } }
I believe that I should (or should) get around the problems of renaming local variables that occur during minimization, and which can cause this error.
However, this is clearly relevant to the minimization process, since when I set BundleTable.EnableOptimizations = true to my dev machine, I can play it back.
angularjs
Ken Smith Oct 30 '13 at 1:00 2013-10-30 01:00
source share