The goal is to develop a large one-page application on Angular. At the same time, I avoid using jQuery. But on one “page” the WYSIWYG Imperavi editor is used, which is written in jQuery. You can not refuse to use this editor (for reasons beyond my control). The question is how, in this case, to properly use the jQuery library. Is it possible to somehow load it dynamically, or will it be necessary to connect jQuery for the whole site for the sake of one less visited page?
- Obviously, it can only be connected on this page. - Zelta
- How to do it? - aim777
- Hmmm ... You take a page with an editor and connect jquery on it. And then you take the rest of the pages of the site and do not connect jquery to them. - Zelta
- I honestly do not understand what the problem is. - Zelta
- Speech about one-page application on angular - aim777
|
2 answers
What is the problem to connect jquery on the page? - it seems to be small and easier to connect for the whole page and process when loading the application than loading dynamically in the template page with WYSIWYG (as I understand it, you mean exactly that by “page”)
|
Starting with v1.4.0-beta.6, Angular has built-in support for ngJq: https://docs.angularjs.org/api/ng/directive/ngJq
|