md-data-table icon indicating copy to clipboard operation
md-data-table copied to clipboard

dependency injection with chrome 44

Open RoCat opened this issue 8 years ago • 8 comments

It seems that in version 0.9.8 the file /dist/md-data-table.js does not load the dependencies correctly.

angular.module('md.data.table', ['md.table.templates']); 

is writen before "md.table.templates" declaration and that seems to result to an error in google chrome 44. I tested to manually change "md.table.templates/pagination/progress" declaration to the top of the file and it worked well, I also tried to update to chrome 47, and it works event with current implementation.

Unfortunatelly I have no time to rollback to a google chrome 44 to re test other things so if someone could !

RoCat avatar Jan 15 '16 15:01 RoCat

chrome 47 fails with

Error: [$injector:modulerr] Failed to instantiate module md.data.table due to:
Error: [$injector:modulerr] Failed to instantiate module md.table.templates due to:
Error: [$injector:nomod] Module 'md.table.templates' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

stuck!

svs avatar Jan 16 '16 04:01 svs

+1

FraGoTe avatar Jan 19 '16 22:01 FraGoTe

I tried inprivate mode and it worked ....

FraGoTe avatar Jan 19 '16 22:01 FraGoTe

See if v0.9.9 fixes this for you.

daniel-nagy avatar Jan 19 '16 23:01 daniel-nagy

Unknown provider: $mdEditDialogProvider <- $mdEditDialog

FraGoTe avatar Jan 20 '16 12:01 FraGoTe

Controller 'mdHead', required by directive 'mdColumn', can't be found!

FraGoTe avatar Jan 20 '16 13:01 FraGoTe

@FraGoTe mdColumn gets defined before mdHead as a consequence of concatenating all the files together but no one else has reported that as an issue. Also I have no idea why you would get that first error, Unknown provider: $mdEditDialogProvider <- $mdEditDialog. Are you using some sort of dependency injector?

daniel-nagy avatar Jan 20 '16 16:01 daniel-nagy

Something similar happens to me, I'm trying to use this with laravel-angular-material and i'm getting:

Error: [$injector:unpr] Unknown provider: orderObjectFilterProvider <- orderObjectFilter

albertojm avatar Jun 28 '16 20:06 albertojm