daniel-nagy / md-data-table

Material Design Data Table for Angular Material
MIT License
1.9k stars 520 forks source link

Including "angular-material-data-table" after "angular-material" with Browserify breaks some directives #144

Open francoislg opened 8 years ago

francoislg commented 8 years ago

Now, this is really weird and I can't pinpoint why it's happening.

Two weird behavior I noticed :

I then removed "require("angular-material-data-table")" and everything started working again as usual. So I moved it in the require order, and discovered that I need to include it before "angular-material"

I don't even have a md-data-table directive yet, so it looks like some script conflict, thought I can't find what is the problem.

Happening in : 0.8.11 (npm version) and 0.8.13. My angular-material version : 0.11.1

seiyria commented 8 years ago

I had this same problem. Ultimately, I ended up just not using browserify and bundling them through my build process.

yelrayv commented 8 years ago

I have also encountered similar problems. Angular material layout column directives stopped working if I used only "require("angular-material-data-table")" or "require("angular-material")" before "require("angular-material-data-table")".