Skip to content

Angle Bracket example in readme does not work #453

@ryanlabouve

Description

@ryanlabouve

The example of using this component provided in the readme does not work.

(I'm happy to help either address this in docs or troubleshoot why it's not working.)

Example from the readme that doesn't work:

<h1>Angle Bracket:</h1>
<BasicDropdown as |dd|>
  <dd.Trigger>Click me</dd.Trigger>
  <dd.Content>Content of the trigger</dd.Content>
</BasicDropdown>

Here is an example that works with moustache hashtag components (not sure what the proper name for these is):

<h1>Moustache Hashtag:</h1>
{{#basic-dropdown as |dd|}}
  {{#dd.trigger}}Click me{{/dd.trigger}}
  {{#dd.content}}Content of the trigger{{/dd.content}}
{{/basic-dropdown}}

Here's a screenshot where you can see the Angle Bracket invocation is not working and the Moustache Hashtag is:

burnerbdd 2019-03-08 09-41-43

I tried to reproduce this in a twiddle, but the site had some issues loading with relevant versions of ember-source and ember-basic-dropdown. Here's a repo I made though: ryanlabouve/basic-dropdown-angle-bracket-demo@809e62c

DEBUG: ------------------------------- index.js:185
DEBUG: Ember      : 3.8.0 index.js:185
DEBUG: Ember Data : 3.7.0 index.js:185
DEBUG: jQuery     : 3.3.1 index.js:185
DEBUG: -------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions