Skip to content
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
@tiagovtristao

Description

@tiagovtristao

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.5
  • Angular Material Version: 1.0.9

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions