Open dmartinsti opened 6 years ago
I have the same issue. But the problem is not (only) the routing/state. In my case it is that md-select exists twice one in ngMaterial und one in md.data.table. When the ngMaterial's md-select is loaded before routing to a state that contains md.data.table's md-select then this select directive will not load. Both directives will be loaded when they are on the same state. You can reproduce when you start at a state with no md-select and navigate to a state with a table md-select (and optional option md-select) this will be rendered with checkboxes. When you start at a state with only a option md-select and navigate to a state with a table md-select the checkboxes will not show.
My workaround for this issue is adding md.data.table as a requirement for material.core or material.components.select (second not tried yet but should work). This will then load both md-select directives if one of them is needed. This is a little overhead because it extends angular material and increases the potential load time when md-data-table isn't needed.
angular.module('material.core').requires.push('md.data.table');
Table not create checkboxes when i redirect to $state of table
Now, if I refresh the page manually the checks are created normally.
See pictures
Before![captura de tela 2017-10-05 as 13 51 37](https://user-images.githubusercontent.com/14186651/31239829-d813073c-a9d4-11e7-92fb-948069a5c134.png)
After reload manually![captura de tela 2017-10-05 as 13 52 09](https://user-images.githubusercontent.com/14186651/31239895-1c093a92-a9d5-11e7-959e-59e1457e62fb.png)
Help-me