mdDataTable: Controller 'mdtTable', required by directive 'mdtHeaderRow', can't be found!

i found this error is similar to a closed issue “Controller ‘mdDataTable’, required by directive ‘mdDataTableHeaderRow’, can’t be found!”, i followed the final solution of that issue to test by adding <script src="https://code.jquery.com/jquery-2.1.4.js"> </script> <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.min.js"> </script> , but i am no luck.

Could you please to have some ideas for this issue?

thanks yan

About this issue

  • Original URL
  • State: open
  • Created 8 years ago
  • Comments: 32 (10 by maintainers)

Most upvoted comments

I copied the example 1:1, just to get it running. First, i got the same error as described, but then I found a solution for my case. Right order of js-files is important:

  1. jquery.min.js
  2. angular.min.js
  3. angular-animate.min.js
  4. angular-aria.min.js
  5. angular-material.min.js
  6. lodash.min.js
  7. angular-material-icons.min.js
  8. md-data-table-templates.js
  9. md-data-table.js

Maybe it helps.

hi all,

It seems my fault in testing. It is worked, however, i still cannot use it.

I just try the html and js files by browser in file:///folder/file.html, it works, no any error. When i use electron.atom.io to run it, it showed me this error.

@publicroot still have this problem even following your sequence. @iamisti I selected your demo html and js code for testing, so should have “closing tags”.