Directives not loading on page refresh/reload


#1

Hello guys!

I’ve been trying to solve my issue for couple of days now. Using angular-meteor components approach. Everything works fine before and after page refresh, just I get these errors after refresh for angular material and md data table =>

angular material: Error: [$compile:ctreq] Controller ‘mdSelectMenu’, required by directive ‘mdOption’, can’t be found!
mdDataTable: Error: [$compile:ctreq] Controller ‘mdTable’, required by directive ‘mdCell’, can’t be found!
angular: TypeError: Cannot read property ‘$$animLeave’ of undefined

Until refresh everything works with no console errors… any ideas what might be wrong?

Thanks in advance guys!


#2

Totally my fault guys, forgot to remove ng-app from main html… Works find