-
Notifications
You must be signed in to change notification settings - Fork 3.4k
mdPanel issue after minification. #8948
Description
Actual Behavior:
What is the issue?mdPanel stops working after minfying code. I have a grunt task that minifies my files and groups bower libraries into single js files. Before this process mdPanel works fine but afterwards i get an error in the vendor.js file. I use mdDialog (and many other material services) in my code and they work fine after this process.
I get the following error: [$injector:unpr] Unknown provider: aProvider <- a (in my vendor.js file)
The error occurs here: (in the function... f.apply(b, a)
this.$get = ["$window", function(c) { function e(a) { return a instanceof Error && (a.stack ? a = a.message && -1 === a.stack.indexOf(a.message) ? "Error: " + a.message + "\n" + a.stack : a.stack : a.sourceURL && (a = a.message + "\n" + a.sourceURL + ":" + a.line)), a } function f(a) { var b = c.console || {} , f = b[a] || b.log || n , g = !1; try { g = !!f.apply } catch (h) {} return g ? function() { var a = []; return d(arguments, function(b) { a.push(e(b)) }), f.apply(b, a) } : function(a, b) { f(a, null == b ? "" : b) } }
What is the expected behavior?mdPanel should work correctly after minifying / grouping.
CodePen (or steps to reproduce the issue): *
CodePen Demo which shows your issue:Details:
Angular Versions: *
Angular Version:1.5Angular Material Version:1.1.0 RC5
Additional Information:
Browser Type: *Chrome
Shortcut to create a new CodePen Demo.
Note: * indicates required information. Without this information, your issue may be auto-closed.
Do not modify the titles or questions. Simply add your responses to the ends of the questions.
Add more lines if needed.