daniel-nagy / md-data-table

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

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

Open docmur opened 7 years ago

docmur commented 7 years ago

Hello

I'm running to a problem I've seen here before, where in the console I'm seeing:

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

I'm running Angular 1.5.8

ielektronick commented 7 years ago

Hi docmur. Could you add some HTML here?

garretwilson commented 6 years ago

I don't know if this is related, but I just ran into the same problem. In my case the problem is that I used md-column instead of md-cell in the body of the table. So in other words, md-column was used on a <td> that wasn't inside <thead> marked with md-head.

So check everything you have marked with md-column, and make sure it's inside something marked with md-head. Maybe you meant to mark something as cell instead of a column header.

I hope this helps someone.