Having the following in index.html and the simple state of the ui router loading compoment as a template
<body ng-app="myApp" layout="column"> <div class="container" layout="row" flex ui-view> </div> </body>
A specific component using the following template stored in a file
<md-sidenav md-is-locked-open="true" class="red">sidenav</md-sidenav> <md-content class="green" flex>content</md-content>
The generated code will be
<body ng-app="myApp" layout="column"> <div class="container" layout="row" flex ui-view> <customizing> <md-sidenav md-is-locked-open="true" class="red">sidenav</md-sidenav> <md-content class="green" flex>content</md-content> </customizing> </div> </body>
The tag breaks the layout of the angular material. If I don't use a component, but just a view like this, the layout will be fine
<body ng-app="myApp" layout="column"> <div class="container" layout="row" flex ui-view> <md-sidenav md-is-locked-open="true" class="red">sidenav</md-sidenav> <md-content class="green" flex>content</md-content> </div> </body>
Any ideas? I also found this post , but I cannot figure out how to use the component as an attribute. Is it possible?
See sample plnkr
source share