This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
mdSidenav renders before scope variables are populated #9052
Closed
Description
Actual Behavior:
What is the issue? *
The html below is loaded by a component through the property templateUrl
, and the mdSidenav directive is rendered before {{ ::$ctrl.id }}
gets evaluated. So the md-component-id
becomes literally the string "{{ ::$ctrl.id }}"
<md-sidenav
class="md-sidenav-left md-whiteframe-2dp"
md-component-id="{{ ::$ctrl.id }}"
md-is-locked-open="$mdMedia('gt-sm')">
<md-toolbar>
<h1 class="text-center">{{ $ctrl.header }}</h1>
</md-toolbar>
<md-content>
<menu-dropdown navigation="$ctrl.navigation"></menu-dropdown>
</md-content>
</md-sidenav>
Angular Versions: *
Angular Version:
1.5.5Angular Material Version:
1.0.9