V
V
Vlad1712015-05-06 16:02:30
JavaScript
Vlad171, 2015-05-06 16:02:30

Why jQuery plugin only works after page refresh?

I'm doing a project - Django backend, front - Angular. On one of the views there is a jQuery plugin for a photo gallery with gadgets and all sorts of beauties. There is only one problem - at the FIRST visit to the page, these beauties appear along with the photo only after the page is refreshed, the plugin itself works correctly. Can anyone explain this behavior and how it can be fixed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Zhak, 2015-05-06
@romanzhak

Create a plugin directive, set up everything in link. Or better find a solution under AngularJS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question