Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

mdPanel issue after minification. #8948

@whittssg

Description

@whittssg

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.5
  • Angular 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions