how to use jquery file only once in angularjs -


how call jquery file once in scenario

i working in mean technology

i have ui (working html page). in ui has header, footer, sidebar these header, footer, sidebar coming separate ui. have combined use in every html.

this way combine html page , use in every page.

<div id="sidebar" class="sidebar responsive ace-save-state" ng-controller="slidecontroller" ng-include="'slidebar.html'"> 

in side bar.html have used jquery

like in header.html also

  <script src="/assets/js/jquery-2.1.4.min.js"></script> 

in originalui.html (working html page) have used

<script src="/assets/js/jquery-2.1.4.min.js"></script>  

if run ui. jquery load 3 times. functionality not working @ time return

jquery-2.1.4.min.js failed load resource: server responded status of 404 (not found) 

if removed jquery in header , sidebar. not working functionality work.

i don't know why. can tell me how resolve problem

you have add jquery reference starting html file(eg:index.html,layout.html) of app instead adding every file


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -