Skip to content

Drop Down not working #104

@eLPe21

Description

@eLPe21

I'm having the very same problem as described here:
#100

Just downloaded the angular version of MDB then

  1. npm install inside the folder.
  2. put that into the app.component.html:
    Looks wrong here on github -> copied 1st code-example from: https://mdbootstrap.com/docs/jquery/components/dropdowns/

`

Basic dropdown

<!--Trigger-->
<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"
  aria-haspopup="true" aria-expanded="false">Material dropdown</button>


<!--Menu-->
<div class="dropdown-menu dropdown-primary">
  <a class="dropdown-item" href="#">Action</a>
  <a class="dropdown-item" href="#">Another action</a>
  <a class="dropdown-item" href="#">Something else here</a>
  <a class="dropdown-item" href="#">Something else here</a>
</div>
`
  1. ng serve

So the page is styled by MDB however the dropdown on the button does not work and I struggle to find the information how to fix it.
collapsed navbar also can't be expanded.

It all looks like some javascript is not added but the Quick Start video does not mention anything about it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions