Skip to content

Doesn’t work with angle-bracket components #61

Description

@andrewbranch

{{my-component}} works like a charm but <my-component /> doesn’t get the hashed identifier class added.

Activity

andrewbranch commented on Jun 10, 2015

@andrewbranch
Author

I guess we’ll come back to this when angle-bracket components re-land in a beta. I might have time to take a look at it then.

oligriffiths commented on Jan 12, 2016

@oligriffiths

@andrewbranch I'm using angle brackets and it works fine. It doesn't work however when building for production.

andrewbranch commented on Feb 2, 2016

@andrewbranch
Author

This is not a thing anymore. Support for angle brackets was removed shortly after I filed.

eguitarz commented on Aug 27, 2018

@eguitarz

@andrewbranch @ebryn Angle brackets is landed in Ember 3.3. Should we reopen this issue? RFC PR is here: emberjs/rfcs#311

tleperou commented on Sep 15, 2018

@tleperou

+1 sounds good to support angle brackets!

reopened this on Sep 15, 2018

webark commented on Sep 15, 2018

@webark
Owner

does anyone have any clues as to why it’s not working? or a simple repro app..?

tleperou commented on Sep 16, 2018

@tleperou

#57 relates the issue:

The problem is that angle bracket components hit ComponentLookup.componentFor() instead of 'ComponentLookup.lookupFactory()'. So, we just need to override componentFor as well. I'll add a pull request.

Unfortunately, I don't find any public documentation about componentFor.

Any clue?

jasonworden commented on Mar 1, 2019

@jasonworden

I want to help. Anyone have an idea where to get started here?

tleperou commented on Mar 1, 2019

@tleperou

Same one here.

We have to check out the ember-octane and particularly the @glimmer/component to ensure the compatibility. Unfortunately, I am not fully familiar - yet - with those packages.

Feel free to share every clue you have, I would help you.

jasonworden commented on Mar 1, 2019

@jasonworden

@tleperou Actually, just tried, and it looks like this is already working with <AngleBracket /> components! I initially just took it for granted that it wouldn't work, but I'm not seeing any issues, and the styles applied fine!

Note: I'm running Ember 3.4.7.

webark commented on Mar 1, 2019

@webark
Owner

closing then on @jasonworden comments. If it ends up being not the case, feel free to reopen @tleperou

BryanCrotaz commented on Dec 27, 2019

@BryanCrotaz

How did you access the style namespace? I've tried:

<div class="{{@styleNamespace}}">

and

<div class="{{this.styleNamespace}}">

Neither of them produce a class attribute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions