Skip to content

TemplateFactory.prototype.makeComponentTemplate breaks component-name-based CSS styling #3423

@rafaelhamasaki

Description

@rafaelhamasaki

This is a:

  • Bug Report
  • Feature Request
  • General Query

My version of UI-Router is: 1.0.0

Bug Report

Current Behavior:

When routing to components, the constructed templates are prefixed with "x-". As such, stylings that rely on component names break. I.e: my-component { color: red; } won't apply to <my-component /> because it's been renamed to <x-my-component />.

Expected Behavior:

The component should not be renamed so that styles apply as expected.

Link to Plunker that reproduces the issue:

https://plnkr.co/edit/NKTlKYBCtKG6xg0Oqsgd?p=preview

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions