daniel-nagy/md-data-table

dependency injection with chrome 44

RoCat opened this issue · 8 comments

RoCat commented

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 !

svs commented

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!

+1

I tried inprivate mode and it worked ....

See if v0.9.9 fixes this for you.

Unknown provider: $mdEditDialogProvider <- $mdEditDialog

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

@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?

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