md-tabs: Required causes error when used in default ui-view content #2414
Description
I'm getting the following error when using md-tab
within ui-view
as the default content after I navigate to a child state.
https://docs.angularjs.org/error/$compile/ctreq?p0=mdTabs&p1=mdLabelTemplate
I have a state with the following template which defines my tabs within a ui-view
as the default content.
<div ui-view>
<!-- md-tabs/md-tab would be declared here along with other content -->
</div>
Then a child state's template would replace the md-tabs
and all the other default content. If you have any questions please let me know as I haven't seen this method being shown public much(however it is used in the ui-router example app).
I presume this was caused by the recent changes to tabs in 0.9.0-rc1
however I've also encountered the same error on the latest master. I think a simple fix would be to use ?^
and possibly just return if the controller is undefined in md-label-template
. There is more info about the syntax on the error page above.