having issues with angular minification

I'm having an issue with angular minification when I release. I've redone my controller to have annotations as recommended, but still get the same error:

Error: Unknown provider: nProvider <- n

Here's my first few lines of code for the controller:

var app = angular.module('myApp', ['ngGrid', 'ui.bootstrap.dialog']);
app.controller('MyCtrl', ['$scope', '$dialog', '$http', function ($scope, $dialog, $http){    

UPDATE: sorry, I found that there was another function I was using which was taking in $scope as parameter. That was causing the issue. I basically did the same thing to annotate its parameters, and now it works.

链接地址: http://www.djcxy.com/p/77640.html

上一篇: 我怎样才能创建一个复选框?

下一篇: 有角度缩小的问题