Using dropdown methods


Topic: Using dropdown methods

MonizDave premium priority asked 3 years ago

Below is copy pasted from the documentation for how to use the dropdown methods:

@ViewChild('#dropdown') dropdown: MdbDropdownModule;

ngAfterViewInit(): void {
  this.dropdown.show();
}

Expected behavior

It works as described

Actual behavior

Error message: Property 'hide' does not exist on type 'MdbDropdownModule'.ts(2339)


MonizDave premium priority commented 3 years ago

Disregard: it's just a typo in the documentation.

It should be MdbDropdownDirective not MdbDropdownModule.


Arkadiusz Idzikowski staff commented 3 years ago

@MonizDave Thank you for reporting this problem, we updated the documentation page.


Dave Moniz premium priority answered 3 years ago

Can confirm that documentation has been updated. Closing this.


FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: MDB5 1.0.0-beta4
  • Device: PC
  • Browser: Google Chrome
  • OS: Arch Linux
  • Provided sample code: No
  • Provided link: No