On 2/17/17, 7:51 AM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:
>I used in MDL in a JS project recently, and I found that if I created MDL >components after the initial page load, I needed to run the following code >once they were added to the DOM: > >if("componentHandler" in window) >{ > window["componentHandler"].upgradeAllRegistered(); >} > >My app was divided into several screens, so I simply called that whenever >I >created a new screen, and all MDL components would be upgraded. > >However, I don't think this exact function is the best choice for FlexJS >MDL components. Maybe the FlexJS MDL wrappers call upgradeAllRegistered in addedToParent overrides? Or is there more to it than that? -Alex