mog5808 pro asked 7 years ago


Hi all, I am using angular-cli and was able to import in the scripts of the cli json all the required file for MDB it works without any errors now. The issue i have is trying to open the side nav $(".button-collapse").sideNav('show'); just aint working. I tried the following 1. Removed the # from the anchor tag 2. declare var $:any and added $(".button-collapse").sideNav('show'); in a public function 3. added an external file in the scripts of the angular-cli json Any other ideas?

Adrian Sawicki free answered 7 years ago


Hello, Thank you Mog5808 for giving a solution to your own question. It might help other people too. Regards, Adrian

mog5808 pro answered 7 years ago


http://stackoverflow.com/questions/30623825/how-to-use-jquery-with-angular2 here goes the solution

Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags