Jquery does not work with Angularjs

Asked

Viewed 223 times

0

I got a Dashboard Bootstrap with Jquery, but when I try to use it with the single-page angularjs, the functions that are in jquery do not work, but I can do in Angularjs, what I wanted it to work was the dropdown of the menu-level, I managed to make it work with bootstrap, but it is not the same thing

Dropdown with Bootstrap

inserir a descrição da imagem aqui

Dropdown with Jquery

inserir a descrição da imagem aqui

  • my theory for this is as follows: your jquery script does not find the elements because they have not yet been loaded, so the angular will load your template via ajax. Usually jquery is in ready()which is when the gift is ready. It’s more or less at this point that the angular loads your template. At least I think that’s it. Try a better drag and confirm.

  • Try to take a look at boostrap directives for angular: link

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.